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

CustomWebElement class must implement WebElement Interface. #3

Open
sidnc86 opened this issue Jun 18, 2019 · 1 comment
Open

CustomWebElement class must implement WebElement Interface. #3

sidnc86 opened this issue Jun 18, 2019 · 1 comment

Comments

@sidnc86
Copy link

sidnc86 commented Jun 18, 2019

This would allow to easily cast from WebElement reference. Consider a scenario where a call to findElement() returns WebElement but we would like to have

ButtonElement b = (ButtonElement)wd.findElement(...);

This would simplify quite a lot of similar scenarios.

@sidnc86
Copy link
Author

sidnc86 commented Jun 18, 2019

Another advantage this provides is in context of reusability of methods like getTagName() as described in Issue#2

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

No branches or pull requests

1 participant