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
|
Very cool. Thank you so much.
ReplyDeleteThanx! Coo stuff!
ReplyDeletethank you!!!
ReplyDeleteFYI. This only worked for me when I used a lower case "d" and "t" for date and time values.
ReplyDeleteThanks for publishing this, saved me quite some time! :)
ReplyDelete
ReplyDeleteSelenium 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!!!
It is really a great work and the way in which you are sharing the knowledge is excellent.Thanks for your informative article
ReplyDeleteselenium training in bangalore|
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.
ReplyDeleteweb design training in chennai