-12

what is the actual meaning of these two statements?

waitFor(20) { 
  !userDropdown.text().contains("Sign In")
}

waitFor(20) {
  title ==~ /[\w\d \-\@()]+( - [\w\d \-]+){0,1} is using Bintray/
}
tim_yates
  • 167,322
  • 27
  • 342
  • 338

1 Answers1

2

These look like Geb wait conditions:

waitFor(20) { 
   !userDropdown.text().contains("Sign In")
}

Wait for 20 seconds or a web element named userDropdown to not have the text "Sign In", whichever happens first.

And

waitFor(20) {
   title ==~ /[\w\d \-\@()]+( - [\w\d \-]+){0,1} is using Bintray/
}

wait for 20 seconds or the web page title to be some string ending "is using Bintray".

CommodoreBeard
  • 340
  • 2
  • 12