Debomita Bhattacharjee has Published 863 Articles

What is the exact meaning of webdriver.chrome.driver and where this system property is located in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 06-Apr-2021 08:43:32

4K+ Views

To launch the Chrome browser, we have to use the System.setProperty method. This method takes the parameters – webdriver.chrome.driver and the path of the chromedriver.exe file.So webdriver.chrome.driver is basically the property name and the path of the chromedriver.exe is the value. Thus, the System.setProperty method is used to configure the ... Read More

How to switch different browser tabs using Python Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 06-Apr-2021 08:39:11

6K+ Views

We can switch different browser tabs using Selenium webdriver in Python using the method switch_to.window. By default, the webdriver has access to the parent window.Once another browser tab is opened, the switch_to.window helps to switch the webdriver focus to the tab. The window handle of the browser window where we ... Read More

How to switch back from a frame to default in Selenium Webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 06-Apr-2021 08:35:15

8K+ Views

We can switch back from a frame to default in Selenium webdriver using the switchTo().defaultContent() method. Initially, the webdriver control remains on the main web page.In order to access elements within the frame, we have to shift the control from the main page to the frame with the help of ... Read More

How to know the exact time to load a page using Selenium WebDriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 06-Apr-2021 08:34:09

4K+ Views

We can determine the exact time to load a page using Selenium webdriver. We can capture the time before the page load with help of the System.currentTimeMillis method.After the URL for the application is launched, we have to wait for the page to be loaded completely with the help of ... Read More

How to use relative xpath for locating a web-element by particular Attribute in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 06-Apr-2021 08:30:56

2K+ Views

We can use relative xpath for locating web-element by particular attribute value. A relative xpath begins from the element to be located and not from the root.It begins with the // symbol. It’s advantage is that even if an element is deleted or added in the DOM, the relative xpath ... Read More

How to send keyboard input to a textbox on a webpage using Python Selenium webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 06-Apr-2021 08:29:59

9K+ Views

We can send keyboard input to a textbox on a webpage in Selenium webdriver in Python using the method send_keys. The text to be entered is passed as a parameter to that method.To perform keyboard actions, we can also use the send_keys method and then pass the class Keys. as ... Read More

How to display all items in the list in the drop down in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 06-Apr-2021 08:29:29

3K+ Views

We can display all items in the list in the dropdown with Selenium webdriver using the Select class. A dropdown is represented by select tag and itsoptions are represented by option tag.To obtain all the list of items we have to use the method getOptions. Its return type is list. ... Read More

How to loop through a menu list on a webpage using Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 06-Apr-2021 08:27:44

8K+ Views

We can loop through a menu list on a webpage using Selenium webdriver.In a webpage, a list is represented by an ul tag and it consists of elements with li tag. Thus the li tag can be said as the child of ul.First, we have to identify the element with ... Read More

How to get details of a webpage like url, title name, domain name etc using Javascript Executor in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 06-Apr-2021 08:13:33

919 Views

We can get details of a web page like url, title, domain name of webpage using JavaScript Executor in Selenium webdriver. Selenium can execute JavaScript commands with the help of the executeScript method. The command to be executed is passed as a parameter to that method.SyntaxTo get the page title, ... Read More

How can we use JavaScript Executor to click and enter data to a web element in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 06-Apr-2021 08:12:12

16K+ Views

We can use JavaScript Executor to click and enter data to a web element in Selenium webdriver. Selenium can run JavaScript commands with the help of the executeScript method.To click an element, the parameters to the executeScript method are - arguments[0].click(); and the webelement locator.SyntaxWebElement l = driver.findElement(By.className("gsc-input")); JavascriptExecutor j ... Read More

Advertisements