Failed to create shader cache entry- error while locating an element by its Css selector

前端 未结 3 1956
我寻月下人不归
我寻月下人不归 2020-12-20 06:01

I am writing a simple script in Python using Selenium to detect an element by its Css selector. I am accessing the Google page, and am targeting the input, by its CSS select

相关标签:
3条回答
  • 2020-12-20 06:20

    I ran the script (your code) and no errors came.

    Possibly the problem is of chrome driver, please make sure 32/64 bit version is not causing this issue. Also, please see the following link, it may help: "Unable to move the cache" error in selenium webdriver

    0 讨论(0)
  • 2020-12-20 06:23

    Your code is near perfect. You need to make a small change as follows:

    Edit the CSS_SELECTOR from:

    fLocator = "input[name=q]"
    

    To:

    fLocator = "input[name='q']"
    

    Update:

    Looking at the error, resurfacing of the error and some research over these few links and discussions I feel the shader_disk_cache.cc or shader_disk_cache.h somehow got corrupted. I think a clean uninstall of Google Chrome (using Revo Uninstaller) and complete disk cleanup (using CCleaner) & finally installation of the latest Google Chrome may get us beyond the error.

    0 讨论(0)
  • 2020-12-20 06:25

    Correct Locator are

    Using xpath: //*[@id='gs_htif0']

    fLocator = "input[name='q']"

    0 讨论(0)
提交回复
热议问题