1.

John is not sure if the warning text label is displayed on the web page of a blog. How will you help him using Selenium?

Answer»

We can use the method isDisplayed() to confirm the presence of the element on the screen. 

Boolean buttonPresence = driver.findElement(by.id("sample").isDisplayed();


Discussion

No Comment Found