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

WebElement Locators – 2: By Xpath, Tag Name, Class Name, and CSS Selector

So in last article we have seen how to locate the WebElement using four locators and those are Name, Id, Partial Link Text and Link Text. Now in this article we are going to see the remaining four locators. Let’s start looking at them one by one. Locating element By Xpath: Xpath functions are very … Read more