I have an element with class "popup", which i want to make visible during a functional test. What is the best way to programmatically make the element visible? I am using Geb for functional testing.
Asked
Active
Viewed 354 times
1 Answers
2
If you use Jquery in your web pages. You could use jquery "show" method to make visible an invisible element. The code would look like this
$(".popup", 0).jquery.show();
Note : As per documentation, the jQuery integration only works when the pages you are working with include jQuery, Geb does not install it in the page for you.

Ashish Joseph
- 1,103
- 3
- 12
- 35