# coding: utf-8
from selenium import webdriver
import time
driver = webdriver.Remote(
command_executor='http://localhost:9999',
desired_capabilities={
"debugConnectToRunningApp": 'false',
"app": r"C:\\Program Files\\internet explorer\\iexplore.exe"
})
print('started')
time.sleep(2)
window = driver.find_element_by_name('Tools')
window.click()
print('done')
driver.close()
Comments
Post a Comment