Rahul Chaturvedi a écrit :

Problem:

depending upon some condition I need to verify some text or click some link.(viz: If some element/text is present then only do something otherwise do something else)

It's not possible with selenium Html table tests. Normally a test case is considered to have a predictable result. Please consider if you really are in a specific case or if your test is maybe not fully defined (the setup does not include all data). Selenium developers don't want such optional statement in selenium
Adding such an optional statement would require one of the following options
  • modify selenium FIT runner loop (hard)
  • write an user extension command which include a test + a command (ugly)
  • write an user extension which modify the flow of FIT runner (very ugly but quite easy, the line number is a variable)
  • extends the "include" extension you can find at http://confluence.public.thoughtworks.org/display/SEL/include so that it can be a conditional include (maybe better but still ugly)
Hard isn't it !
Maybe someone has done it and may be of greater help than I.
Good luck !
Alex.




_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users

Reply via email to