Re: [geb-user] Digest for geb-user@googlegroups.com - 1 update in 1 topic

12 views
Skip to first unread message

Kirk Simmons

unread,
Feb 28, 2017, 5:54:23 PM2/28/17
to geb-...@googlegroups.com
Easier way to solve this would be to check for the presence of your overlay and then do a jquery.remove to just whack it altogether.  Once you know it is gone then use your loginButton.click(). 

On Feb 28, 2017, at 4:38 PM, geb-...@googlegroups.com wrote:

"Jacek Tołkanowicz" <jtolka...@gmail.com>: Feb 28 05:15AM -0800

Currently when I login to my portal, sometimes I get advertisment which
overlays login button. Currently I use this code:
waitFor(){
loginButton.click()
}
 
It works but as I see in Geb source code Wait.waitFor executes click() and
catches the exception thrown by Selenium. If we had sth like isClickable or
isVisible that we could eliminate clicking and catching Exception from
waitFor.
On the other hand Selenium probably check's this clickability/visibility
underneath before executing click() so the main gain would come from not
throwing (Selenium) and catching exception (Geb).
 
 
W dniu niedziela, 26 lutego 2017 14:51:22 UTC+1 użytkownik Marcin Erdmann
napisał:
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to geb-user+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages