How to find XPath/CSS selector in chrome and evaluate it with example

Finding XPath or CSS selector is very crucial task for selenium webdriver test script preparation and so google chrome has made it very easy for all and specially selenium users. There are many different chrome extensions available which provides this feature. But Google chrome’s inbuilt Chrome Devtool is very easy to use. It has many … Read more

How to Nomalize Space in XPath

In this article, you’ll learn how to remove leading and trailing whitespace in XPath using the normalize-space() function for cleaner and more accurate text matching. What is normalize-space in Selenium? Normalize-space is a very useful function in XPath for whitespace normalization when you build it concerning some string or keyword to use it in the … Read more

What is get method in selenium?

WebDriver interface has many different methods and get method is one of them. WebDriver interface is implemented by different browser classes like ChromeDriver, EdgeDriver, EventFiringWebDriver, FirefoxDriver, InternetExplorerDriver, OperaDriver, RemoteWebDriver and SafariDriver. So you can use get method to open any of these browser with given URL syntax. get Method Method Name : get Method description : … Read more

Selenium Tutorial : The path to the driver executable must be set by the webdriver.gecko.driver system property

Since last update of selenium 3, Most of the users(especially those who are new with selenium) are facing common issue with error “Exception in thread “main” java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases” when … Read more