-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adding support for code based ignore elements #66
Conversation
JSONObject tag = getTag(); | ||
List<Tile> tiles = captureTiles(options); | ||
return cliWrapper.postScreenshot(name, tag, tiles, debugUrl); | ||
JSONObject ignoreRegion = findIgnoredRegions(options); | ||
System.out.println("askdhskjdsjdf"); |
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 remove debug comments
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.
removed
for (String id : ids) { | ||
try { | ||
MobileElement element = (MobileElement) driver.findElementByAccessibilityId(id); | ||
Point location = element.getLocation(); |
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.
we can reduce duplication for ignoreRegionsByXpaths & ignoreRegionsByIds
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.
lets keep it same in all sdks, it will only give slight refactor change which we will have to do in dotnet sdk as well to keep all sdks consistent as far as code is concerned
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.
done
2a13176
to
8e34621
Compare
README.md
Outdated
`Left` (int): Left coordinate of the ignore region. | ||
|
||
`Right` (int): Right coordinate of the ignore region. | ||
- Raises:ValueError: If top, bottom, left, or right is less than 0 or top is greater than or equal to bottom or left is greater than or equal to right. |
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.
correct exception class here
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.
corrected
Adding Support for code based ignore elements.