Selenium Web Driver Articles

Page 6 of 13

What to press ctrl +f on a page in Selenium with python?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 29-Jul-2020 3K+ Views

We can perform the action of pressing ctrl+f keys in Selenium. There are multiple special Keys available that enable the act of pressing keys via a keyboard like ctrl+c, ctrl+v, ctrl+f and many more. These special Keys are a part of selenium.webdriver.common.keys.Keys class.key_up() – This method releases a modifier key. The key_up() method is a part of Action Chains class and used to release a key pressed via key_down(). This method is widely used for coping and pasting actions via (ctrl+c, ctrl+v).In order to carry out this action, we need to first press the ctrl key downwards and simultaneously press ...

Read More

How to use the click() method in Action Chain class in Selenium with python?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 29-Jul-2020 1K+ Views

We can click() method in Action Chain class in Selenium. These classes are generally used for automating interactions like context menu click, mouse button actions, key press and mouse movements.These types of actions are mainly common in complex scenarios like drag and drop and hovering over an element on the page. The methods of the Action Chains class are utilized by advanced scripts. We can manipulate DOM with the help of Action Chains in Selenium.The action chain object implements the ActionChains in the form of a queue and then executes the perform() method. On calling the method perform(), all the ...

Read More

How to perform releasing a mouse on an element in Selenium with python?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 29-Jul-2020 1K+ Views

We can perform mouse release from an element in Selenium with the help of Action Chains class. These classes are generally used for automating interactions like context menu click, mouse button actions, key press and mouse movements.These types of actions are mainly common in complex scenarios like drag and drop and hovering over an element on the page. The methods of the Action Chains class are utilized by advanced scripts. We can manipulate DOM with the help of Action Chains in Selenium.The action chain object implements the ActionChains in the form of a queue and then executes the perform() method. ...

Read More

How to input letters in capital letters in an edit box in Selenium with python?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 29-Jul-2020 2K+ Views

We can input letters in capital letters in an edit box in Selenium with the help of Action Chains class. These classes are generally used for automating interactions like context menu click, mouse button actions, key press and mouse movements.These types of actions are mainly common in complex scenarios like drag and drop and hovering over an element on the page. The methods of the Action Chains class are utilized by advanced scripts. We can manipulate DOM with the help of Action Chains in Selenium.The action chain object implements the ActionChains in the form of a queue and then executes ...

Read More

How to perform right click on an element in Selenium with python?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 29-Jul-2020 6K+ Views

We can perform right click on an element in Selenium with the help of Action Chains class. These classes are generally used for automating interactions like context menu click, mouse button actions, key press and mouse movements.These types of actions are mainly common in complex scenarios like drag and drop and hovering over an element on the page. The methods of the Action Chains class are utilized by advanced scripts. We can manipulate DOM with the help of Action Chains in Selenium.The action chain object implements the ActionChains in the form of a queue and then executes the perform() method. ...

Read More

How to perform double click on an element in Selenium with python?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 29-Jul-2020 8K+ Views

We can perform double click on an element in Selenium with the help of Action Chains class. These classes are generally used for automating interactions like context menu click, mouse button actions, key press and mouse movements.These types of actions are mainly common in complex scenarios like drag and drop and hovering over an element on the page. The methods of the Action Chains class are utilized by advanced scripts. We can manipulate DOM with the help of Action Chains in Selenium.The action chain object implements the ActionChains in the form of a queue and then executes the perform() method. ...

Read More

How to perform drag and drop operation in Selenium with python?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 29-Jul-2020 2K+ Views

We can perform drag and drop actions in Selenium with the help of Action Chains class. These classes are generally used for automating interactions like context menu click, mouse button actions, key press and mouse movements.These types of actions are mainly common in complex scenarios like drag and drop and hovering over an element on the page. The methods of the Action Chains class are utilized by advanced scripts. We can manipulate DOM with the help of Action Chains in Selenium.The action chain object implements the ActionChains in the form of a queue and then executes the perform() method. On ...

Read More

How to get the values of a particular row in a table in Selenium with python?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 29-Jul-2020 4K+ Views

We can get the values of a particular row in a table in Selenium. The rows of a table are represented by tag in html code. The data in each row is enclosed with the tag in html. Thus a tag’s parent is always a tag.The logic is get all the rows, we shall use the locator xpath and then use find_elements_by_xpath method. The list of rows will be returned. Next we need to compute the size of the list with the help of len method.The is not normally present in the first row of ...

Read More

How to count the number of rows in a table in Selenium with python?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 29-Jul-2020 12K+ Views

We can count the total number of rows in a table in Selenium. The rows of a table are represented by tag in html code. To get all the rows, we shall use the locator xpath and then use find_elements_by_xpath method. The list of rows will be returned. Next we need to compute the size of the list with the help of len method.The html code snippet of a table row count is as described below −Syntaxdriver.find_elements_by_xpath("//table/tbody/tr")ExampleCode Implementation for getting row count.from selenium import webdriver #browser exposes an executable file #Through Selenium test we will invoke the executable file ...

Read More

How to key in values in input text box with Javascript executor in Selenium with python?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 29-Jul-2020 2K+ Views

We can key in values inside an input text box with a Javascript executor in Selenium. Javascript is a language used for scripting and runs on the client side (on the browser). Selenium gives default methods to work with Javascript.SyntaxjavaScript = "document.getElementsByClassName('gsc-input')[0].value = 'T' ") driver.execute_script(javaScript)There are couple of methods by which Javascript can be executed within browser −Javascript execution at document root level.In this process, we shall identify the element with locators (class or id) and then perform the required action on it. Then execute_script() method is called and the Javascript is passed as a string to it.Syntax −javas ...

Read More
Showing 51–60 of 130 articles
« Prev 1 4 5 6 7 8 13 Next »
Advertisements