Tag Archives: test automation

Setup Selenium Webdriver Project in Visual Studio with C#

XYou can write your Selenium scripts in C#. It is one of mostly using programming language for Selenium tests. As an IDE, Visual Studio(VS) is the best environment for .net products. You can setup a Selenium running project from scratch by following steps: 1. Create a C# project in Visual Studio: Selenium First 2. Install… Read More »

Selenium – Assertion with Python Unittest

in a previous post, i shared a basic script to use Python Unittest. At that post, there is not any Assertion(verification). Now, let’s see power of Assertions. after we prepare our test and its steps, we will need at some point to check results. in following example, get header title and compare it if it correct… Read More »

Selenium – Wait For Element – Python

In Test Automation progress, one og the most important point is check element existence status. Sometimes you need to wait for any element to be appear or disappear. Selenium has wait and Expected Conditions functions. following examples is a simple action that wait for a <div> element with ID of “ajaxReturnDiv”. # -*- coding: UTF-8… Read More »

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 »