S
S
Slytherin2019-12-02 11:00:46
Python
Slytherin, 2019-12-02 11:00:46

How to hold down ctr+r or F5 keys in Selenium WebDriver Python 3?

I can't refresh the page using ctrl + r
I use the following command:
ActionChains(driver).key_down(Keys.CONTROL).send_keys('r').key_up(Keys.CONTROL).perform()
Also tried the command to highlight the page
ActionChains(driver).key_down(Keys.CONTROL).send_keys('a').key_up(Keys.CONTROL).perform()
ctrl+a works, but ctrl+r doesn't. What is the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question