Selenium WebDriver Java Framework Course Limited Time Offer for $20

Selenium WebDriver Java Framework Course Limited Time Offer for $20

 

Print

Selenium IDE Print Command

Echo is a simple command that allows you to print text to your test's output.

This is useful for proving informational progress notes in your test which display on the console as your test is running.

For example:

 

Command Target Value
store 10 Number1
store 20 Number
echo javascript{parseInt(storedVars['Number1'])+parseInt(storedVars['Number2'])}  
echo   "test is completed"
echo javascript{new Date()}  

Execution Result:

  • [info] Executing: |store | 10 | Number1 |
  • [info] Executing: |store | 20 | Number2 |
  • [info] Executing: |echo | javascript{parseInt(storedVars['Number1'])+parseInt(storedVars['Number2'])} | |
  • [info] echo: 30
  • [info] Executing: |echo | | "test is completed" |
  • [info] echo:
  • [info] Executing: |echo | javascript{new Date()} | |
  • [info] echo: Sun Dec 08 2013 17:33:43 GMT-0500 (Eastern Standard Time)