Closed
Description
Description
I've below code
WebDriverWait wait = new WebDriverWait(AppiumController.instance.driver, timeout); wait.until(ExpectedConditions.visibilityOf(elementName));
Here I pass timeout value but observed that instead of waiting for timeout value, it waits for default time mentioned in
PageFactory.initElements(new AppiumFieldDecorator(driver, 30, TimeUnit.SECONDS), this);
Environment
- java client build version or git revision if you use some shapshot: 5.0.0-BETA3
- Appium server version or git revision if you use some shapshot: 1.6.3
- Desktop OS/version used to run Appium if necessary: Mac
- Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe:
- Mobile platform/version under test: iOS 10.2
- Real device or emulator/simulator: simulator
Details
- When I set wait , I expect element to wait for that time interval itself.
- But value set for wait is ignored and element waits for default timeout mentioned in PageFactory.initElements
- Later I tried
@WithTimeout(time = 3, unit = TimeUnit.SECONDS)
for this element but still it waits for defaulttime, my understanding is this particular tag overrides the default time.
Code To Reproduce Issue [ Good To Have ]
NA
Ecxeption stacktraces
NA
Link to Appium logs
https://gist.github.com/vikramvi/2eedd0643f89140fa3d6ffac8f347644