WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

implicit_wait did not retry to search at regular interval

Open krevathi1912 opened this issue 5 years ago • 3 comments

I am automation UWP app using WinAppdriver with appium. Language used is python. I want driver to retry searching for element presence, i configured implicit_wait(20) to the driver. The driver did not retry to search for element at regular interval, it just tried once and after 20 secs 404 error thrown. Below is the log entry. This issue occurs only for winappdriver, whereas for android app, it retries searching for element at regular intervals. Appreciate any help

WinAppdriver version: WinAppDriver1.2-RC Appium v1.16.0

2020-06-01 14:19:57:157 - [35m[WinAppDriver][39m [STDOUT] {"using":"accessibility id","value":"LoginPage_TestUsername","sessionId":"a5c93107-099b-49e7-a56f-b141a39278a1"} 2020-06-01 14:20:26:158 - [35m[WinAppDriver][39m [STDOUT] HTTP/1.1 404 Not Found R

krevathi1912 avatar Jun 13 '20 12:06 krevathi1912

How are you currently implementing it?

Tree55Topz avatar Jun 13 '20 23:06 Tree55Topz

@Tree55Topz
Sorry for the delay response. I am using python language, below is the code snippet

desired_caps['platformName'] = "Windows"
    desired_caps['deviceName'] = "WindowsPC"
    desired_caps['app'] = "..................!App"
    self.driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
    self.driver.implicitly_wait(20)

krevathi1912 avatar Jun 29 '20 06:06 krevathi1912

Same issue here, the request is sent to Appium server on Windows machine, but when trying to find_element there is no retry, a NoSuchElementError is raised. Am I missing something ? Thank you

rafutek avatar Jan 23 '25 15:01 rafutek