-
-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#846 and #742 FIX #863
#846 and #742 FIX #863
Conversation
- DurationBuilder was added - some changes in WithTimeout to provide backward compatibility
- refactoring of page object tools
- tests were updated
@@ -62,16 +66,20 @@ | |||
private static final List<Class<? extends WebElement>> availableElementClasses = ImmutableList.of(WebElement.class, | |||
RemoteWebElement.class, MobileElement.class, AndroidElement.class, | |||
IOSElement.class, WindowsElement.class); | |||
public static Duration DEFAULT_WAITING_TIMEOUT = ofSeconds(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final?
return Duration.of(withTimeout.time(), withTimeout.chronoUnit()); | ||
} | ||
|
||
return Duration.of(MILLISECONDS.convert(withTimeout.time(), withTimeout.unit()), MILLIS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is FOREVER the same as milliseconds?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was forced to add defalt values (FOREVER and NANOSECONDS) for bacward compatibility (temporary). Comilation problems will occure otherewise. User will be forced to set both time units.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mykola-mokhnach However
Can we consider FOREVER illegal value? I think it has some sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know, but it for sure does not help to read and understand the code.
@@ -48,7 +48,7 @@ | |||
File appDir = new File("src/test/java/io/appium/java_client"); | |||
File app = new File(appDir, "ApiDemos-debug.apk"); | |||
DesiredCapabilities capabilities = new DesiredCapabilities(); | |||
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, AutomationName.ANDROID_UIAUTOMATOR2); | |||
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, AutomationName.APPIUM); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this is changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was for local debugging. Will revert it
Change list
Types of changes
Details
I am sorry for the long break. Was busy.