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
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
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']"
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.
Correct Locator are
Using xpath: //*[@id='gs_htif0']
fLocator = "input[name='q']"