Selenium WebDriver is the Easiest-to-Learn Web Test Automation Framework

Step by Step showing how to learn to write raw Selenium WebDriver test scripts in minutes

If you follow the steps in the article, you will get your first Selenium test running in minutes. Not evil record-n-playback, proper scripting raw Selenium, the same way that is used by the experts.

Everything I show below is free (freedom and pricing), you don’t have to pay a cent. The test scripts are in raw Selenium WebDriver syntax.

driver.find_element(:id, "username").send_keys("agileway")
it "User Login successfully" do
driver.find_element(:id, "username").send_keys("agileway")
driver.find_element(:name, "password").send_keys("testwise")
driver.find_element(:xpath, "//input[@value='Sign in']").click
end
it "User Login successfully" do
driver.find_element(:id, "username").send_keys("agileway")
driver.find_element(:name, "password").send_keys("testwise")
driver.find_element(:xpath, "//input[@value='Sign in']").click
expect(driver.find_element(:id, "flash_notice").text).to eq("Signed in!")
end
driver.find_elements(:link_text, "Next")[1].click 
# the above clicks 2nd 'Next' link
elem = driver.find_element(:id, "agileway_software") driver.action.move_to(elem, 190, 30).click.perform

--

--

Test automation & CT coach, author, speaker and award-winning software developer. Help teams succeed with Agile/DevOps by implementing real Continuous Testing.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Zhimin Zhan

Test automation & CT coach, author, speaker and award-winning software developer. Help teams succeed with Agile/DevOps by implementing real Continuous Testing.