Selenium Webdriver tutorial | How To do Right click | Context Click

Published: 24 April 2015
on channel: GreatStack
7,250
16

How To do Right click(context click) In Selenium Webdriver in Google

Here in this video you will learn selenium script for right click, selenium script for context click, how to do right click in selenium webdriver, how to do context click in selenium WebDriver.

====== selenium script =======

import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.Actions;

public class ContextClick
{
public static void main(String[] args)
{
WebDriver driver=new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.get("http://google.com");
WebElement link = driver.findElement(By.className("_Gs"));
Actions actions=new Actions(driver);
actions.contextClick(link).perform();
actions.sendKeys("t").perform();
}
}
------------------------------------------------------------------------------------------------------------
Please subscribe us:
   / easytutorialsvideo  

Like us on Facebook:
  / easytutorialsvideo  


On this page of the site you can watch the video online Selenium Webdriver tutorial | How To do Right click | Context Click with a duration of hours minute second in good quality, which was uploaded by the user GreatStack 24 April 2015, share the link with friends and acquaintances, this video has already been watched 7,250 times on youtube and it was liked by 16 viewers. Enjoy your viewing!