Wednesday, November 19, 2014

On 1:03 AM by Unknown   No comments
Answer 27You can use “store” command to achieve this. You can save result of an evaluation in a variable and use it later in your Selenium IDE script.

For example we can store value from a text box as following, and later use it to type it in another text box –

            storeText (Command)           css=input#s (Target)           var1(value)

             Type (Command)            css=input#d (Target)            ${var1} (value)

Answer 28You can use echo command as following to check the stored value in Selenium IDE –

           storeText (Command)           css=input#s (Target)           var1(value)

            echo (Command)                                                          ${var1}(value)

Answer 29You could use verify/assertAlert to check presence of alert on page. Since selenium cannot click on “Ok” button on JS alert window, the alert itself does not appear on page when this check is carried out.

0 comments:

Post a Comment