From the course: Test Automation with Selenium WebDriver for Java

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Code challenge: Detect visibility

Code challenge: Detect visibility

(bright uptempo music) - [Instructor] On the page-with-hidden-element webpage, there is an hidden element here. Your task is to use WebDriver to find this element, check if the element is visible. If the element is visible, click it. If the element is not visible, print, "Box is not visible." Don't miss my solution video where I walk through solving this challenge.

Contents