Tuesday, October 22, 2013

Selenium Ide :TimeStamp


Selenium Ide :Time Stamp


To display time stamp :
 Step 1: Enter the data as in the table below into your Selenium Ide Editor

Step2 :
Command field type > echo
Target  field type      >  ${Timestamp}

Result : 
Test_10/22/2013 4:48:23


Command
Target
Value
store
javascript{((new Date().getMonth()+1)+"/"+new Date().getDate()+"/"+new Date().getFullYear())}
Date
store
javascript{(new Date().getHours()+":" + new Date().getMinutes() + ":" + new Date().getSeconds())}
Time
store
Test_${Date} ${Time}
Timestamp

8 comments:

  1. Very cool. Thank you so much.

    ReplyDelete
  2. Thanx! Coo stuff!

    ReplyDelete
  3. FYI. This only worked for me when I used a lower case "d" and "t" for date and time values.

    ReplyDelete
  4. Thanks for publishing this, saved me quite some time! :)

    ReplyDelete

  5. Selenium is used in many IT companies due to its numerous advantages compared to other automation testing tools in the market. There is massive demand for automation testers to validate software and mobile applications across the world. Taking Selenium Course in Chennai
    will assist aspirants to enter automation testing industry!!!

    ReplyDelete
  6. It is really a great work and the way in which you are sharing the knowledge is excellent.Thanks for your informative article

    selenium training in bangalore|

    ReplyDelete
  7. Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition.
    web design training in chennai

    ReplyDelete