-
Notifications
You must be signed in to change notification settings - Fork 58
use options class instead deprecated DesiredCapabilities #24
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
Conversation
throws MalformedURLException, InterruptedException { | ||
DesiredCapabilities caps = new DesiredCapabilities(); | ||
throws MalformedURLException, InterruptedException { | ||
UiAutomator2Options options = new UiAutomator2Options(); |
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.
Please use Mutuable Caps?
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.
This has been discussed with product team and @francisf and we decided to use Options.
Mutuable caps are not needed here, for android and ios separate folders are present because a single script cannot be used for both ios and android automation.
throws MalformedURLException, InterruptedException { | ||
DesiredCapabilities caps = new DesiredCapabilities(); | ||
throws MalformedURLException, InterruptedException { | ||
XCUITestOptions options = new XCUITestOptions(); |
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.
Please use Mutuable Caps?
caps.setCapability("platformVersion", "9.0"); | ||
options.setCapability("deviceName", "Google Pixel 3"); | ||
options.setCapability("platformName", "android"); | ||
options.setCapability("platformVersion", "9.0"); |
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.
This is non-w3c compliant and it must go inside bStackOptions ?
https://www.w3.org/TR/webdriver1/#capabilities
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.
Also app cap is not complaint.
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.
For Appium these caps are general capabilities and not specific to Browserstack, please ref here
capabilities.setCapability("platformName", "android"); | ||
capabilities.setCapability("platformVersion", "9.0"); | ||
options.setCapability("deviceName", "Google Pixel 3"); | ||
options.setCapability("platformName", "android"); |
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.
Above comment applies here too.
Folder structure and readme suggestions: Option 1: Let's rename folders to: Option 2: |
Please close this pr as we are doing it as part of #25 |
JIRA: https://browserstack.atlassian.net/browse/ASI-4226
This PR: