Debomita Bhattacharjee has Published 863 Articles

How to deal with ModalDialog using selenium webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Nov-2020 13:46:45

4K+ Views

We can deal with modal dialog boxes with Selenium. A modal is just like a window that enforces the user to access it prior to going back to the actual page. It can be an authentication window as well.Let us work with the below modal dialog −Exampleimport org.openqa.selenium.By; import org.openqa.selenium.WebDriver; ... Read More

How can I consistently remove the default text from an input element with Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Nov-2020 13:45:20

686 Views

We can consistently remove the default text from an input element with Selenium. The clear method is used to remove the values currently present in an edit box or a text area.The Keys.chord method along with sendKeys can also be used. The Keys.chord method allows you to pass more than ... Read More

How to close the pop up window in selenium running?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Nov-2020 13:42:57

8K+ Views

We can close the pop up window with Selenium. The getWindowHandles and getWindowHandle methods are used for the pop up window. To store all the window handles opened in a Set data structure, the getWindowHandles method is used.To store the window handle of the pop up in focus, the getWindowHandle ... Read More

How do you check scroll position using selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Nov-2020 13:41:25

4K+ Views

We can check scroll position using Selenium. To check the position we shall use the Javascript executor. We have to verify the value of the window.pageYOffset in the browser.While the URL is launched, the scroll is at the top the value of window.pageYOffset is 0. As we scroll to an ... Read More

How to launch Chrome Browser via Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Nov-2020 13:40:16

18K+ Views

We can launch Chrome browser via Selenium. Java JDK, Eclipse and Selenium webdriver should be installed in the system before Chrome browser is launch.Follow the steps one by one to launch Chrome −Navigate to the link: https://chromedriver.chromium.org/downloads.Select the Chrome driver link which matches with the Chrome browser in our system.Next, ... Read More

How do you get selenium to recognize that a page loaded?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Nov-2020 13:38:25

10K+ Views

We can get Selenium to recognize that a page is loaded. We can set the implicit wait for this purpose. It shall make the driver to wait for a specific amount of time for an element to be available after page loaded.Syntaxdriver.manage().timeouts().implicitlyWait();After the page is loaded, we can also invoke ... Read More

How to verify specific text exists within an attribute in Selenium IDE?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Nov-2020 13:36:20

2K+ Views

We can verify specific text exists with an attribute in Selenium IDE. This can be done using the assert and verify commands −assert element present − Verifies if the element exists on the page. If assertion fails, the test terminates. It has the element locator as an argument.For example −assert ... Read More

How to select value from a drop down using Selenium IDE?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Nov-2020 13:34:37

3K+ Views

We can select value from a dropdown using Selenium IDE. The select command is used for this purpose. First of all, Selenium IDE add-on should be installed in Firefox.Launch Firefox and select the Tools menu. Then choose Selenium IDE.Selenium IDE window shall open. Choose the first row inside the test ... Read More

The Architecture of Selenium WebDriver.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Nov-2020 13:31:31

780 Views

The architecture of Selenium webdriver are illustrated below −Image source:https://www.tutorialspoint.com/what−is−web−driver−in−seleniumSelenium webdriver has the following units −Selenium Binding Languages − Selenium can work on various libraries like Java, Python, Ruby, and so on. It has the language bindings for more than one language.JSON Wire Protocol − JSON is Javascript Object Notion. ... Read More

What is WebDriver in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Nov-2020 13:30:18

1K+ Views

The webdriver in Selenium is an automation framework used to carry out testing in the web in multiple browsers. It can support more than one operating system as well. It comes with no cost.Selenium can used with languages like −JavaPythonC#Ruby.NetPHPSelenium webdriver can be used HTMLUnit browsers which are headless in ... Read More

Advertisements