How to make an element visible using Geb?


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.


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.


  • How to grab the value of the span element using jQuery
  • Cannot get a checkbox
  • UWP : Print with out Printer Popup Dialoag
  • Opening links in a new tab and only the new tab
  • Google Calendar Api is not showing event list
  • getelement by class name for clicking
  • Python/Javascript: WYSIWYG html editor - Handle large documents fast and/or design theory
  • Is there a package like bigmemory in R that can deal with large list objects?
  • Knockout custom binding handler
  • Why isn't obj.style.left = “200px”; working in this code?
  • CXF JAXB JAXBEncoderDecoder unmarshalling error : unexpected element when having qualified elements
  • Hide HTML elements without javascript, only CSS
  • Python pickle not one-to-one: different pickles give same object
  • Why use database factory in asp.net mvc?
  • Do I need to seed any random number generator before using EVP_PKEY_keygen of OpenSSL?
  • JqueryMobile Popup menu is not working
  • C: Incompatible pointer type initializing
  • why xml file does not aligned properly after append the string in beginning and end of the file usin
  • Get history of file changes from TFS to implement custom “blame”-behaviour of exceptions
  • preg_replace Double Spaces to tab (\\t) at the beginning of a line
  • Custom Tabgroup Appcelerator
  • How to clear text inside text field when radio button is select
  • Get data from AJAX - How to
  • ImageMagick, replace semi-transparent white with opaque white
  • Repeat a vertical line on every page in Report Builder / SSRS
  • Email format validation in mvc3 view
  • FB SDK and cURL: Unknown SSL protocol error in connection to graph.facebook.com:443
  • Is there a amazon webstore API for customers?
  • sending/ receiving email in Java
  • Weird JavaScript statement, what does it mean?
  • jQuery tmpl and DataLink beta
  • Is there a mandatory requirement to switch app.yaml?
  • How to disable jQuery.jplayer autoplay?
  • CSS Applying specific rule for a specific monitor resolution with only CSS is posible?
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • unknown Exception android
  • Django query for large number of relationships
  • Observable and ngFor in Angular 2
  • UserPrincipal.Current returns apppool on IIS
  • Unable to use reactive element in my shiny app