Mark a few Selenium tips:
- Generate and Store current date in “YYYYMMDD” format
And the javascript code is here:
javascript{ d=new Date(); d.getFullYear().toString()+((d.getMonth()+1)<10?"0"+(d.getMonth()+1).toString():(d.getMonth()+1))+(d.getDate()<10?"0"+d.getDate().toString():d.getDate().toString()); }
- Override Untrusted SSL Self Certificates
- Firefox: http://code.google.com/p/selenium/wiki/UntrustedSSLCertificates
- IE: Need to click the overridelink:
driver.Navigate().GoToUrl("javascript:document.getElementById('overridelink').click()");
