Author Archives: mahsum

Selenium Webdriver – Java with JUnit

you can find a basic simple Java class written in JUnit format for Selenium Webdriver. JUnit has some advantages such as Assertions etc. in this post, you see without Assertion. i will write a post how to use Assertion soon .   import org.junit.*; import org.openqa.selenium.*; import org.openqa.selenium.firefox.FirefoxDriver; public class SimpleSeleniumJavaJunit { private WebDriver driver; @Before… Read More »

Selenium Webdriver – Python with Unittest

in a previous post, i present a Python script to run some basic selenium functions.By the following example, you can run your Python code unittest format. it completely has same result with that one. but, unittest framework has some advantages to use. in next post, i will publish some example, specially Assert functions provide a powerful way… Read More »

Selenium Webdriver – Automation with Python

Hi people, today, i would like present an basic script example of Python for Selenium Webdriver. first line is a general Python code to use any printable string in utf-8 (# -*- coding: UTF-8 -*-) next line is import selenium webdriver module (from selenium import webdriver) create a Firefox driver and assigned it to a… Read More »

Set up Python for Selenium Test Automation

As you know, one of strong side of Selenium Webdriver is to support several known programming languages. You can write you script in Java, Python, C# and etc. You can find languages that supported and their client at this link (Selenium Client & WebDriver Language Bindings section). Today, i’d like to show how can you set… Read More »

Selenium Webdriver – Automation with Java

Hi, One of the most used language to write Selenium Webdriver script is Java. you can find a basic simple Java class to run Selenium Webdriver. import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; public class SimpleSeleniumTest { public static void main(String[] args) { WebDriver driver = new FirefoxDriver(); driver.get(“http://www.mahsumakbas.net”); String element = driver.findElement(By.xpath(“//a[@class=’site-description’]”)).getText(); System.out.println(“Page title is:… Read More »

Influencer of Software Testing World

Software Testing is relatively a young world when compare with Software development. So, who should we follow? is there any people to know and follow. i did a search and find most influencer of Software Testing world: Cem Kaner Yaron Tsubery James Bach Lisa Crispin Michael Bolton Scott Barber Michael Bolton James Whittaker Eric Jacobson… Read More »

Selenium IDE – Check jQuery Ajax Request Complete

If there is any ajax process in your page that you test, it’s better to wait for ajax request is complete. Otherwise, your next step can fail. if you do your test with Selenium IDE, you can use waitForCondition command. Target is: selenium.browserbot.getUserWindow().$.active == 0 Value: Timeout duration in milisecond. to wait max 30 seconds… Read More »