Writing Conditional XPath In Selenium WebDriver

Hello Folks, In this post, we will see how can we write conditional XPaths in selenium webdriver. What is meant by Conditional XPaths? If I say you to write xpath for the web element which has text or contains as “Selenium”, you can write is easily as below: Has text= //*[text()=’Selenium’] Contains text= //*[contains(text(),’Selenium’)] But If … Continue reading Writing Conditional XPath In Selenium WebDriver