@BeforeEveryStep

28 views
Skip to first unread message

Richard

unread,
May 16, 2014, 9:51:48 AM5/16/14
to subs...@googlegroups.com
Hi,

I'm wondering if there is a hook I can use to execute something before each step in a similar fashion to the @BeforeEveryScenario. I know there isn't an annotation, but is there anything else I can use to replicate this functionality?

Kind regards,
Richard

Ian Moore

unread,
May 16, 2014, 11:33:36 AM5/16/14
to subs...@googlegroups.com
Hi Richard,

No I'm afraid not, at least not out of the box.  Out of interest what is your use case ?  We're currently looking at putting together a roadmap for new features for Substeps so we may be able to help...

regards
Ian

Richard

unread,
May 16, 2014, 11:50:04 AM5/16/14
to subs...@googlegroups.com
One useful scenario I have is that we use blockUI to prevent users from double clicking buttons / show a message if a transaction takes longer than a couple of seconds. Sometimes (with ajax responses) the response can be appended to the page and the webdriver sees the new content before blockUI has had a chance to be closed, and therefore the test fails because it can't get to the button to click etc.

Kind regards,
Richard
Reply all
Reply to author
Forward
0 new messages