Selenium is the most searched words on google these days in QA area. If we talk about testing automation Selenium would be first preference. Selenium has many benefits over other automation tools like QTP. Reasons for Selenium popularity can be categorized under below points:
Video will describe what is Selenium, why we need to learn Selenium and what versions of Selenium available in market. |
Learn Selenium-Appium
Appium with Android & iOS / Selenium WebDriver, Grid, TestNg, Maven, POM, Test Frameworks. Revamp website is www.HelpingTesters.com
Tuesday, 23 June 2015
What is Selenium
Install Apk
Install Apk
| Video will show to install .apk file in Mobile and also different ways for getting .apk file. Video will also cover how you can transfer you .apk file between your computer and mobile |
Appium WhatsApp
Appium WhatsApp
| Video will show how you can launch WhatsApp using Appium and Selenium WebDriver |
Appium Example Calling Number
Appium Example Calling Number
Video will show hou you can call any number from your mobile using Appium and Selenium WebDriver
Video will show hou you can call any number from your mobile using Appium and Selenium WebDriver
import java.net.MalformedURLException;
import java.net.URL;
import io.appium.java_client.android.AndroidDriver;
import org.openqa.selenium.By;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.Test;
public class CallingNumber {
AndroidDriver dr;
@Test
public void call() throws MalformedURLException{
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", "Moto G");
capabilities.setCapability("platformVersion", "5.0.2");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("appPackage", "com.android.dialer");
capabilities.setCapability("appActivity", "com.android.dialer.DialtactsActivity");
dr = new AndroidDriver(new URL("http://192.168.1.3:4723/wd/hub"), capabilities);
dr.findElement(By.id("com.android.dialer:id/floating_action_button")).click();
//Dial a number
dr.findElement(By.id("com.android.dialer:id/one")).click();
dr.findElement(By.id("com.android.dialer:id/one")).click();
dr.findElement(By.id("com.android.dialer:id/one")).click();
//Dialing a number
dr.findElement(By.id("com.android.dialer:id/dialpad_floating_action_button")).click();
}
}
Appium App Package Activity
Appium App Package Activity
|
Selenium TestNg
Selenium WebDriver TestNg
| Video will tell what is TestNg, why we need TestNg, how can we intsall/configure TestNg in Selenium WebDriver |
Selenium Dynamic Xpath
Selenium WebDriver Dynamic Xpath
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class DynamicXpath {
public static void main(String[] args) throws InterruptedException {
WebDriver driver = new FirefoxDriver();
driver.get("http://yahoo.com");
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
driver.findElement(By.xpath("//* [@id='UHSearchBox']")).sendKeys("Selenium");
Thread.sleep(5000);
//List<WebElement> list = driver.findElements(By.xpath("//*[starts-
with(@id,'yui_3_12_0_1_1430')]/a"));
List<WebElement> list = driver.findElements(By.xpath("//*
[contains(@id,'ui_3_12_0_1_1430')]/a"));
System.out.println(list.size());
list.get(0).click();
}
}
| Video will describe how we can handle dynamic Xpath is 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 DynamicXpath {
public static void main(String[] args) throws InterruptedException {
WebDriver driver = new FirefoxDriver();
driver.get("http://yahoo.com");
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
driver.findElement(By.xpath("//* [@id='UHSearchBox']")).sendKeys("Selenium");
Thread.sleep(5000);
//List<WebElement> list = driver.findElements(By.xpath("//*[starts-
with(@id,'yui_3_12_0_1_1430')]/a"));
List<WebElement> list = driver.findElements(By.xpath("//*
[contains(@id,'ui_3_12_0_1_1430')]/a"));
System.out.println(list.size());
list.get(0).click();
}
}
Subscribe to:
Comments (Atom)