For pressing ctrl+click in selenium using python.First we need to upload Keys from selenium webdriver & Actionchains.

from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
action = ActionChains(driver)
action.key_down(Keys.CONTROL).click(rs).perform()

Above code will open link in new tab chrome browser.

By SC

Leave a Reply

Your email address will not be published. Required fields are marked *