Debomita Bhattacharjee has Published 896 Answers

How to maximize the browser in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

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

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

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

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

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

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

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

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

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

Explain the components of Selenium.

Debomita Bhattacharjee

Debomita Bhattacharjee

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

Selenium components consist of Selenium IDE, Selenium RC, Selenium WebDriver, and Selenium RC.Selenium IDE- It was basically a Firefox plugin and one of the earliest and simplest versions of Selenium. It had the record and play feature. In order to create an advanced framework, Selenium IDE has to be combined ... Read More

Advertisements