Skip to content
This repository has been archived by the owner on Nov 15, 2020. It is now read-only.

Deprecate getElementTitle() #4

Closed
iamanikeev opened this issue Dec 20, 2016 · 1 comment
Closed

Deprecate getElementTitle() #4

iamanikeev opened this issue Dec 20, 2016 · 1 comment
Labels

Comments

@iamanikeev
Copy link
Contributor

iamanikeev commented Dec 20, 2016

It should be deprecated because it is being used in a very ugly manner. F.e. clickLink():

webElement = PageFactory.getInstance().getCurrentPage().getElementByTitle(elementTitle);
webElement.click();
Core.addToReport(webElement, " is clicked");

and then in addToReport():
String elementTitle = PageFactory.getInstance().getCurrentPage().getElementTitle(webElement);

@iamanikeev iamanikeev changed the title Implement fix for getElementTitle(), and deprecate it Deprecate getElementTitle() Dec 20, 2016
@iamanikeev
Copy link
Contributor Author

Instead, I suggest to add field name to report as soon as it was found by title and we have both title and value to set available.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants