Quality Testing

Quality is delighting customers

locating webelement issue in selenium

Views: 68

Attachments:

Reply to This

Replies to This Discussion

What is the issue. To get the unique element. 

You can do this via css.

[id$=admin_disable] 

its not working

can you give meother options plzzz

"//descendant::button[@id='admin_disable']")[1]

this will get the unique first values.

let me check

WebElement element1= driver.findElement(By.xpath("//descendant::button[@id='admin_disable'])[1]"));
element1.click();

used like this

but getting error

Selenium Webdriver with Java: Element not found in the cache - perhaps the page has changed since it was looked up

it worked thanks a lot

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2017   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service