Is there a way to ignore upper case when trying to find a link by linkText with Webdriver?
I am using Selenium 2 Webdriver. I want to click on a link but the link text can be "Linktext" or "LINKTEXT". Is ther a better way than that: List<WebElement> list = driver.findElements(By.linkText("Linktext")); if(list.size()>0){ driver.findElement(By.linkText("Linktext")).click(); } else { driver.findElement(By.linkText("LINKTEXT")).click(); } API and google didnt really help me. Any ideas how to ignore upper case?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.