Wednesday, April 24, 2013

  • Open Firefox browser.
  • Open selenium IDE from Tools in browser.
  • Verify the RECORD button is ON in selenium IDE window. 
  • Navigate the browser to www.google.co.in
  • Verify the title of the page
  • Type “helloselenium blog” in Search textbox.
  • Click on Search button. 



  • Verify the title of the page.
  • Wait for the search result present for “Hello Selenium” blog
  • Verify the search result present for “Hello Selenium” blog.
  • Click on search result of “Hello Selenium” blog. 
  • Wait for page to load of “Hello Selenium” blog
  • Verify the title of the page. 
  • Verify the recorded script in selenium IDE window 
Command
Target
Value
open
/
type
id=gbqfq
helloselenium blogspot
click
id=gbqfb

clickAndWait
css=em

* Base URL:
http://www.google.co.in/



  • Modify the recorded script in selenium IDE window. 
Command
Target
Value
open
/
verifyTitle
Google

type
id=gbqfq
helloselenium blog
click
id=gbqfb

waitForElementPresent
//em[contains(text(),'Hello Selenium')]

verifyTitle
helloselenium blogspot - Google Search

clickAndWait
//em[contains(text(),'Hello Selenium')]

waitForPageToLoad
10000

verifyTitle
Hello Selenium

* Base URL:
http://www.google.co.in/
  • Save the recorded script.
  • Run the recorded script.

In the above script we have added a new row to wait for page to load the title of the each page.


Abhishek Yadav
I am Abhishek Yadav, author of this article. I love to explore open source tools & technology. I have expertise in Selenium WebDriver using Java Technology for automation testing. Apart from automation testing I have very good exposure about software testing concepts & methodologie.
Follow me on Facebook Follow me on Twitter Connect with me on Linkedin Join me on Google+