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

Add endpoint to flash element on screen #337

Merged
merged 4 commits into from
Dec 7, 2018

Conversation

rajdeepv
Copy link
Collaborator

@rajdeepv rajdeepv commented Dec 6, 2018

Flash the element on the screen. This helps to ensure if we are finding right element

Copy link
Member

@jlipps jlipps left a comment

Choose a reason for hiding this comment

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

Cool idea @rajdeepv! I'm OK with this as a mobile command. However I wonder if an additional interface might be an Appium setting called flashElementsOnFind or similar, which when set to true causes the flash to happen on each element, whenever it is found. That way users could toggle flashing for whole sections of finding or for a whole test.

But I'm also OK just keeping it as is and treating my idea as a future feature request once we see how people are using this.

@rajdeepv
Copy link
Collaborator Author

rajdeepv commented Dec 6, 2018

Thanks, @jlipps. Its good idea and could be immensely helpful during debugging of a failed test and while watching the video of the failed tests. But for now, I will leave it as a mobile command to keep it simple

@mykola-mokhnach
Copy link
Contributor

@jlipps Yes, we could add an additional argument later to flash on finding if you think it would be useful.

@mykola-mokhnach mykola-mokhnach merged commit 6647f90 into appium:master Dec 7, 2018
@rajdeepv rajdeepv deleted the flash branch December 7, 2018 12:11
view.startAnimation(animation);
}
});
return null;
Copy link
Member

Choose a reason for hiding this comment

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

it was a bit of a surprise to me as a user of this feature that i got control back immediately, before the animation finished. i would have expected to only get control back when the animation was done.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jlipps will send a PR soon

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