Explaining how the real world works!     RSS Feed The Automated Tester on Twitter The Automated Tester on LinkedIn The AutomatedTester on github

javascript exercise type

Tue 01 Apr 2008

javascript_exercise_type
open /seleniumtraining/Selenium_JavaScript.htm
type datebox javascript{var dates = new Date();var day = dates.getDate();if (day < 10){day = '0' + day;} month = dates.getMonth() + 1;if (month < 10){month = '0' + month;}var year = dates.getFullYear();day + '/' + month + '/' + year}
click dateButton
verifyText Answer Correct

    Area: tutorials

blog comments powered by Disqus