Complete the code to perform a double click on the element.
from selenium import webdriver from selenium.webdriver import ActionChains browser = webdriver.Chrome() element = browser.find_element('id', 'button') actions = ActionChains(browser) actions.[1](element).perform()
The double_click method performs a double click on the given element.
Complete the code to locate the element by CSS selector before double clicking.
from selenium.webdriver.common.by import By element = browser.find_element(By.[1], '.btn-double')
To find an element by CSS selector, use By.CSS_SELECTOR.
Fix the error in the code to correctly perform a double click.
actions = ActionChains(browser)
actions.double_click[1].perform()The double_click method requires the target element as an argument inside parentheses.
Fill both blanks to create an ActionChains object and perform a double click on the element.
actions = [1](browser) actions.[2](element).perform()
Create an ActionChains object and use double_click to double click the element.
Fill all three blanks to import ActionChains, create it, and double click the element.
from selenium.webdriver import [1] actions = [2](browser) actions.[3](element).perform()
Import ActionChains, create an instance, and call double_click on the element.
