substeps

37 views
Skip to first unread message

Eliyas Kumar

unread,
Jul 7, 2014, 10:26:29 AM7/7/14
to subs...@googlegroups.com
Hi all,
Can anyone detail me how substeps integrate with feature to check the expected condition in a web page...

Ian Moore

unread,
Jul 8, 2014, 7:40:08 AM7/8/14
to subs...@googlegroups.com
Hi Eliyas,

In the substep definitions, you define the expected conditions that you are looking for in the web page, eg, you look for a div with a known id that contains some text - the name of the logged in user perhaps.  The webdriver-substeps library uses webdriver to try and locate the element and will fail if it is unable to do so.  There's a range of find mechanisms available which you can extend or replace with your own.

If you take a look at the example substeps project (it can be downloaded from here) you will see examples of the various mechanisms.

I hope that answers your question, please post back if not.
Kind regards
Ian
Reply all
Reply to author
Forward
0 new messages