Skip to content
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

Merged
merged 4 commits into from
Apr 12, 2023

Conversation

prklm10
Copy link
Contributor

@prklm10 prklm10 commented Apr 10, 2023

Adding Support for code based ignore elements.

JSONObject tag = getTag();
List<Tile> tiles = captureTiles(options);
return cliWrapper.postScreenshot(name, tag, tiles, debugUrl);
JSONObject ignoreRegion = findIgnoredRegions(options);
System.out.println("askdhskjdsjdf");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove debug comments

Copy link
Contributor Author

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();
Copy link
Contributor

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

Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@prklm10 prklm10 force-pushed the PAPP-182_Add_support_to_ignore_elements branch from 2a13176 to 8e34621 Compare April 10, 2023 07:50
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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct exception class here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrected

@prklm10 prklm10 merged commit 88b1c5c into master Apr 12, 2023
@prklm10 prklm10 deleted the PAPP-182_Add_support_to_ignore_elements branch April 12, 2023 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants