Debomita Bhattacharjee has Published 863 Articles

Clicking on elements within an SVG using XPath (Selenium WebDriver).

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Dec-2020 11:06:01

12K+ Views

We can click on elements with an SVG using XPath in Selenium. The SVG element has the tag name svg. It has attributes like width, height, viewBox, and so on.To click the element with svg, we should identify the element then utilize the Actions class. We shall first move to ... Read More

How to hide Firefox window (Selenium WebDriver)?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Dec-2020 11:03:19

2K+ Views

We can hide the Firefox window in Selenium webdriver. This can be done by making the browser headless. We shall achieve this with the FirefoxOptions class. We shall then create an object option of that class.We have to make the browser setting options.headless to True value. This driver object shall ... Read More

How to upload a file in Selenium with no text box?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Dec-2020 11:01:34

3K+ Views

We can upload a file in Selenium with no text box. This is achieved with the help of the sendKeys method. It is applied on the web element which performs the task of selecting the path of the file to be uploaded.As we make an attempt to upload, we shall ... Read More

Where to find Selenium Webdriver release notes?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 30-Nov-2020 11:02:41

122 Views

We can find the release notes of Selenium webdriver. They reside within the source control under the specific folder for the particular language libraries. Follow the steps one by one −Navigate to the link − http://docs.seleniumhq.org/.Click on the Download tab.Move to the Selenium Client & WebDriver Language Binding section.Click on ... Read More

Getting Selenium to pause for X seconds.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 30-Nov-2020 10:58:55

2K+ Views

We can get Selenium to pause for X seconds with the concept of synchronization. There are two types of waits − implicit and explicit. Apart from this there is the Thread.sleep method that halts Selenium for a certain time. The wait time is passed as an argument to the method.ExampleCode ... Read More

Use of 'ClickAt ' selenium command.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 30-Nov-2020 10:58:01

3K+ Views

We can use the ClickAt command in Selenium IDE. The ClickAt command has two arguments − the element locator and the coordinates which mentions the x and y coordinates of the mouse with respect to the element identified by the locator.This method is used when we want to click on ... Read More

How to scroll down using Selenium WebDriver with Java?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 30-Nov-2020 10:55:10

2K+ Views

We can scroll down with Selenium. Selenium is unable to handle scrolling directly. It takes the help of the Javascript Executor to perform the scrolling action up to an element.First of all we have to locate the element up to which we have to scroll to. Next, we shall use ... Read More

How to set Google Chrome in WebDriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 30-Nov-2020 10:52:39

618 Views

We can set Google Chrome in Selenium. Java JDK, Eclipse and Selenium webdriver should be configured in the system before setting up the Chrome browser.Steps to set Google Chrome are −Navigate to the link: https://chromedriver.chromium.org/downloads.Select the Chrome driver link which matches with the Chrome browser in the local system.Then, we ... Read More

How to simulate Print screen button using selenium webdriver in Java?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 30-Nov-2020 10:50:15

504 Views

We can simulate a Print screen button with Selenium. The screenshot is captured with the Print screen button. Capturing a screenshot is a three way process. It is an important step towards failure analysis.We shall convert the driver object to TakeScreenshot interface.SyntaxTakesScreenshot s = (TakesScreenshot)driver;Then, with the getScreenshotAs method we ... Read More

Clear browser Cookies with Selenium WebDriver Java bindings.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 30-Nov-2020 10:49:08

679 Views

We can clear browser cookies in Selenium. The method deleteCookieNamed shall delete a cookie with a specific name. The cookie named is passed as an argument to the method. First, we will add a cookie, then get it and finally delete it.Syntaxdriver.manage().deleteCookieNamed("foo");Another method called the deleteAllCookies deletes all cookies from ... Read More

Advertisements