Debomita Bhattacharjee has Published 863 Articles

How to maximize the browser in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 10-Jun-2020 12:22:43

4K+ Views

We can maximize the browser in Selenium with the help of method maximize().The present active window becomes maximized with this method.Code implementation.Exampleimport org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import java.util.concurrent.TimeUnit; public class BrowserMax {    public static void main(String[] args) {       System.setProperty("webdriver.chrome.driver", "C:\Users\ghs6kor\Desktop\Java\chromedriver.exe");   ... Read More

What is the difference between getWindowHandle() and getWindowHandles() in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 10-Jun-2020 12:20:39

15K+ Views

getWindowHandle() and getWindowHandles() methods have some prominent differences.driver.getWindowHandles() – It stores the set of handles for all the pages opened simultaneously.driver.getWindowHandle() – It fetches the handle of the web page which is in focus. It gets the address of the active browser and it has a return type of String.Code ... Read More

How to get the value of the edit box in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 10-Jun-2020 12:17:34

593 Views

We can get the value of the edit box in Selenium by the following ways −By using getText () method.Using the class JavascriptExecutor.Code Implementation with method getText ().Exampleimport org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import java.util.concurrent.TimeUnit; public class GetValueScripting {    public static void main(String[] args) { ... Read More

How to submit a form in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 10-Jun-2020 12:15:38

2K+ Views

We can submit a form in Selenium by the following methods −submit()click()Code Implementation with submit() method.Exampleimport org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import java.util.concurrent.TimeUnit; public class SubmitScripting {    public static void main(String[] args) {       System.setProperty("webdriver.chrome.driver", "C:\Users\ghs6kor\Desktop\Java\chromedriver.exe");       WebDriver driver = new ... Read More

How to click on a link in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 10-Jun-2020 12:12:34

3K+ Views

We can click a link in Selenium by the following locators along with click() method.By link text.By partial link text.Code Implementation with link text locator.Exampleimport org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import java.util.concurrent.TimeUnit; public class LinkScripting {    public static void main(String[] args) {       ... Read More

How do you enter text in the edit box in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 10-Jun-2020 12:09:59

1K+ Views

We can enter text in the edit box in Selenium by the following ways −By invoking sendkeys() method.Using the class JavascriptExecutor.Code Implementation with sendkeys() method.Exampleimport org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import java.util.concurrent.TimeUnit; public class TextEnter {    public static void main(String[] args) {       ... Read More

What are the most basic steps to write a web driver script?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 10-Jun-2020 12:06:16

101 Views

The most basic steps to write a web driver script are listed below −Open any browser by creating a webdriver reference pointing to the corresponding browser driver class.Launch any URL with the get() method.Pause for some time for the page load.Confirm that we are on the correct web page.Finally close ... Read More

What is Selenese ?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 10-Jun-2020 12:04:50

3K+ Views

Selenium IDE by default has a language system commonly called Selenese. It is a group of commands used to perform operations on the web. It primarily helps to develop scripts in Selenium IDE.It can verify if an element is present on a screen, alerts, Ajax calls, links and many more. ... Read More

List down the name of the Web drivers supported by Selenium.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 10-Jun-2020 12:03:10

1K+ Views

The name of the web drivers supported by Selenium are listed below −Google Chrome Driver [ ChromeDriver() supports chrome ]HTML Unit Driver [ WebClient() supports chrome, firefox and IE ]Safari Driver [ SafariDriver() supports Safari ]IOS Driver [ IOSDriver() supports ios ]Android Driver [ AndroidDriver() supports Android ]OperaChromium Driver [ ... Read More

Why does the Selenium WebDriver have an edge over Selenium RC?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 10-Jun-2020 11:57:10

316 Views

Selenium was introduced as a part of version 1.0 of Selenium. Selenium WebDriver was introduced as a part of version 2.0 of Selenium. Selenium RC is deprecated and obsolete now. Though some users still use Selenium RC, the support for it is not there anymore.Selenium RC enabled the feature of ... Read More

Advertisements