> Selenium
developers don't want such optional statement in selenium
Why? Am I missing something? this isn't
unit testing, it's functional testing...
Sorry, but this is hardly pragmatic - we
need this. If the Selenium developers want to empower us, I'm sure they
could add it. I, for one, would like to be able to use a "goto".
This could be achieved by using <tbody id="blah" /> elements. And to
get there, it's pretty obvious I'll need some kind of "IF"...
e.g:
<tbody id="TestPart_1">
if | browserIsFF |
Goto:TestPart_2
<!-- do mouseover tests in IE which
Selenium-FF can't do -->
</tbody>
<tbody id="TestPart_2">
...
</tbody>
Notes:
1 - doesn't mess with internals like the current test row number.
2 - obligates the test coder to markup his tests robustly
3 - ties together IF and GOTO in a "clean" way (selenium could insist that
the tbody id is a child of current test table).
Anyone else think this might be a good/bad idea???
Russ
----- Original Message -----
Sent: Monday, November 14, 2005 9:47
AM
Subject: Re: [Selenium-users] Conditional
checks
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
|
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users