Debomita Bhattacharjee has Published 863 Articles

How to get css class name using Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Sep-2020 07:43:59

12K+ Views

We can get the css class name of an element with Selenium webdriver. To obtain the class name attribute of an element in the html document, we have to use the getAttribute() method. Then the class value is passed as a parameter to the method.Let us consider the below html ... Read More

How to delete default values in text field using Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Sep-2020 06:56:36

14K+ Views

We can delete default values in the text field with Selenium webdriver. There are multiple ways to do this. We can use the clear() method which resets value present already in edit box or text area field.We can use the Keys.chord() method along with sendKeys(). The Keys.chord() method helps to press ... Read More

How to click on across browsers using Selenium Webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Sep-2020 06:50:58

2K+ Views

We can click on a button with across browsers with Selenium webdriver. First of all we need to identify the element with the help of locators like xpath or css, then apply sendKeys() method where the path of the file to be uploaded is passed.Let us see the html ... Read More

Python selenium browser driver.back().

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Sep-2020 06:40:29

13K+ Views

We can navigate back in the browser with Selenium webdriver. There are multiple ways to achieve this. The back() method is used to move back to the prior browser page. This method only is applicable if we jump from webpage to another.We can also move back in the browser with ... Read More

Using Selenium Web Driver to retrieve value of a HTML input.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Sep-2020 06:34:35

14K+ Views

We can get the value of a HTML input with Selenium webdriver. This is achieved with the help of the getAttribute() method. To retrieve the value of the field with tagname input, we have to pass the value as parameter to the getAttribute() method.Let us consider an html code for ... Read More

How to hold key down with Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Sep-2020 06:28:26

7K+ Views

We can hold a key down with Selenium webdriver. We mostly utilize the CONTROL/SHIFT/ALT keys to hold down and then click on other keys. So, only mentioning the modifier keys like keys.CONTROL/ keys.SHIFT or Keys.ALT is not sufficient.To hold down a key simultaneously while another key is being pressed, we ... Read More

Key press in (Ctrl+A) Selenium WebDriver.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Sep-2020 06:12:55

23K+ Views

We can perform key press of (CTRL+A) with Selenium Webdriver. There are multiple ways to do this. We can use the Keys.chord() method to simulate this keyboard action.The Keys.chord() method helps to press multiple keys simultaneously. It accepts the sequence of keys or strings as a parameter to the method. ... Read More

Find elements inside forms and iframe using Java and Selenium WebDriver.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Sep-2020 06:08:24

2K+ Views

We can find elements inside form and iframe with Selenium webdriver. A form in an html document is represented by atag. A form may contain multiple elements inside it. A form can be submitted with a submit() or a click() method.Let us see a form with fields email and password.Exampleimport ... Read More

How to perform right click using Selenium ChromeDriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Sep-2020 05:36:00

742 Views

We can perform right click using Selenium ChromeDriver. On right clicking on a webelement, the context menu gets displayed. For example, if we right click on a text area, an additional menu with several options come up.Actions class in Selenium is responsible for simulating this mouse operation. The Actions class ... Read More

How to find specific lines in a table using Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Aug-2020 13:27:12

4K+ Views

We can find specific lines in a table with Selenium webdriver. A table is identified in an html document with tag. Each table comprises a tag that represents rows and a tag to represent columns. To traverse through table rows and columns we use the method findElements().To ... Read More

Advertisements