I\'m trying to follow the Selenium Webdrive Tutorial
http://www.toolsqa.com/selenium-webdriver/headless-browser-testing-selenium-webdriver/
There is a simple te
It is working fine at my end and printing the title of page as 'Google'. Though it gave me error at 'find the search button' code.
Unable to locate element with name: gbqfba
The error seems to be somewhere with your URL as what I can guess is that the driver is not taking the URL into address bar and, hence, not navigating to www.google.com webpage. That's the reason the driver is unable to print the page title and find the search edit box with name 'q'.
This generally happens due to compatibility issue related to browsers and selenium jar file. Updating the jar files or downgrading the browser may solve this issue.