How to add a IF statement to change an element to another (example locale:
English to Portuguese)
MY research shows that:
One can extend Selenium IDE user-extensions which is not what I aiming for
now. Secondly, I know that one could use a storeEval command and write 2
lines of javascript code. and use conditional statement instead of if
statement. (See Example below) But how can I use that to change from
English locale to Portuguese locale for instance? How will the Selenium
IDE Command, Target and Value look like?
storeEval selenium.isElementPresent('Element I
control')?selenium.doClick('Element which will be clicked if the element
present'):seleniumdoClick('Element which will be clicked if the element
NOT present')
No comments:
Post a Comment