Featured
-
No Featured Found!
Tags
Locators in Selenium WebDriver
Locators in Selenium Webdriver:
In Selenium WebDriver, everything is related to web elements. All the objects in a web page is called web elements like input box, buttons, etc. To do any action with these web elements, we need to first locate ...
Selenium Web-driver Syntax for Selecting a Value using selectByValue method
Method Name: selectByValue
Syntax: select.selectByValue(Value);
Purpose: To Select the options based on value, matching with the argument given by user.
The below is the sample html code Example:
HTML Code:
<title>Select Example b...
How to handle drag and drop functionality through selenium webdriver ?
We use "Actions" class to handle drag and drop functionality.
WebDriver driver = new FirefoxDriver();
driver.get("http://jqueryui.com/resources/demos/droppable/default.html");
driver.manage().timeouts().implicitlyWait(20L, TimeUnit.SECONDS...
How to get the font size of any text on webpage?
We use .getCssValue(attribute) method to get the properties of any webelement.
We can pass the following attributes:
font-family
font-size
color
line-height
WebDriver driver = new FirefoxDriver();
driver.get("http://www.s...
How to Print Drop down value on Console
Hi,
This Video tutorial will help to print Drop down value on Console.
If you are stuck and looking solution for this, watch the full video.
How to handle alert popup in Selenium
Alerts are handled in selenium through the method of alert class.
WebDriver driver = new FirefoxDriver();
driver.navigate().to("http://www.rediff.com/");
driver.findElement(By.xpath("//*[@id='signin_info']/a[1]")).click();
driver.findElemen...