-
-
Notifications
You must be signed in to change notification settings - Fork 760
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
Is it possible that MobileElement/AndroidElement/IOSElement support element description? #478
Comments
Hi all, I like the idea to have some additional info returned about an element when its 'toString()' method is invoked. Maybe, to inject such description into @findby annotation is not reasonable, but to add, e.g., @name annotation (in a manner similar to Yandex HtmlElements framework, see here and here ) would be great! And this enhancement may well be in accord with 'Widget' feature of Appium framework, see here. The example code:
and invoking 'clickLoginButton()' method from APage would print And last comment: It does not sound like an issue, but rather as a Feature Request. Where should I put it then? Thanks, |
Good to know Yandex HtmlElements framework, and look good that anntation any idea? |
@TikhomirovSergey how you look at idea add We need to change AppiumField decorator: update I can try to implement this. |
@HlebHalkouski hi, any progress? If you need, I have working example, but for 1.4 fork. We use it for our project |
thanks all, I also use @HlebHalkouski @aldonin hope can hear the good news from you soon. |
@ansonliao @aldonin I found good solution. This merge make locator factory classes public and I use annotation from java-client with my custom decorator. My decorator is hybrid of
I add |
@HlebHalkouski Do you plan any pull request to java-client? It would be great. Thanks in advance |
Closing w.r.t #625 |
@HlebHalkouski
|
Any custom Decorator & extended mobile elements implementation? |
Description
Hi,
For more details to track the test operation/flow in test report (for example, ReportNG, ExtentsReport), is it possible that add a public
String
field toMobileElement
/AndroidElement
/IOSElement
for storing the element's description?for example:
so that in calling reporter's log method in personal Appium test project:
so that the test report will be more detail as mobile description supported:
Snipshot of ReportNG:
tracking test report test operation flow, it is more easier to locate the it was fail after click profile page submit button, not home page submit button.
please advise.
Please describe the issue. It may be a bug description. So then please briefly descride steps which you were trying to perform and what happened instead.
If there is the feature you want to see added to Appium Java client so please describe necessity of this feature and the way that it should work.
Environment
Details
Please provide more details, if necessary.
Code To Reproduce Issue [ Good To Have ]
Please remember that, with sample code; it's easier to reproduce bug and much faster to fix it.
You can git clone https://github.com/appium/sample-code or https://github.com/appium/sample-code/tree/master/sample-code/apps and reproduce an issue using Java and sample apps.
Also you can create a gist with pasted java code sample or put it here using markdown. About markdown please read Mastering markdown and
Writing on GitHub
Ecxeption stacktraces
Please create a gist with pasted stacktrace of exception thrown by java.
Link to Appium logs
Please create a gist which is a paste of your full Appium logs, and link them here. Do not paste your full Appium logs here, as it will make this issue very long and hard to read!
If you are reporting a bug, always include Appium logs as linked gists! It helps to define the problem correctly and clearly.
The text was updated successfully, but these errors were encountered: