2gis / Winium.Desktop

Winium.Desktop is Selenium Remote WebDriver implementation for automated testing of Windows application based on WinFroms and WPF platforms.
Mozilla Public License 2.0
402 stars 140 forks source link

Not able to perform more than 1 click operations. I'm using Python in Windows 7 #299

Open KirtanAPatel opened 5 years ago

KirtanAPatel commented 5 years ago

Hi, I'm not able to perform more than 1 click operations as the driver ends on its own after the 1st operation. Below is the code I'm using

from selenium import webdriver

driver = webdriver.Remote( command_executor='http://localhost:9999', desired_capabilities={ "debugConnectToRunningApp": 'false', "app": r"C:/windows/system32/calc.exe" })

nine = driver.find_element_by_name("9") nine.click() add = driver.find_element_by_name("Add") add.click() six = driver.find_element_by_name("6") six.click() eq = driver.find_element_by_name("Equals") eq.click()

It does work for from selenium import webdriver

driver = webdriver.Remote( command_executor='http://localhost:9999', desired_capabilities={ "debugConnectToRunningApp": 'false', "app": r"C:/windows/system32/calc.exe" })

nine = driver.find_element_by_name("9") nine.click()

If more than 1 click operations are present the operation doesn't succeed. Can you help me out here..!!

birdistheword96 commented 5 years ago

I Have a similar issue, using python as you are, it opens the app (so calculator in this instance) but then does nothing else.

It doesn't even throw up an exception, it just sits there and does nothing.