42. Selenium IDE Test Cases (current is bold ) Commands / Test Script Play Test Suite Play Current Test Case Play Test Suite Pause/Continue Running Test Case Record a Test Case Infomation Area Edit/Insert commands
43.
44.
45.
46. Checking Links Command Target Value assertElementPresent link=Kontakt Os assertText //a[@href='mailto:info@369.dk'] Kontakt Os assertAttribute css=#contactLink@href mailto:info@369.dk
47. Date Calculations Command Target Value storeEval var now = new Date(); y = now.getYear()+1900; m = '0' + (now.getMonth()+1); d = '0' + now.getDate(); y+'-'+m.substr(-2)+'-'+d.substr(-2) today storeEval var now = new Date(); 1900 + now.getYear() year storeEval storedVars['year'] + 1 nextYear type name=start_date 01-01-${year} type name=end_date ${today} click id=send assertTextPresent Intet fundet i perioden 01-01-${year} - ${today} Everything is on one line
48. Random Input (in lieu of fixtures) Command Target Value store javascript { 'user' + (new Date()).getTime() + '@domain.dom' } email type user.email javascript { storedVars['email'] } store javascript { vat_no=''; for(i=0; i<8; i++) { vat_no+=Math.ceil(Math.random()*9) } } vat_no type company.vat_no Javascript { storedVars['vat_no'] }
57. Standalone Server Window Simplified version of the IDE (running in the target browser) Plus a seperate (browser) window where the tests are performed...