Android Appium: Find element ID of an error? - android

I am doing research in Appium for a few days and get stuck in getting ID.
For some elements which always appear on screen, there may have no problem to get the ID by iuautomatorviewer. However, for some elements which only appear on screen for error notification like an image below and I cannot get an ID of the red circle in the image
Is there any way to get the ID of the red circle?
Thank you in advance!
P/s: I am using Meowchat for practicing only. Thank to Meowchat

i am afraid you cannot, it just a componentDrawable of TextView, not a view .
if you really want to control it , use getCompoundDrawables from EditText, it will help you .
or you can implement yourself Error Notification,make the red circle a view.

Use xpath to find elements.
driver.findElement(By.xpath("//android.widget.EditText[#resource-id='com.minus.android:id/username']");
driver.sendKeys("Username you want to enter");

Related

Button filter address border radius error in flutter

Firstly I just want to say thank everyone for everything. I've learned much through reading the threads.
I can change button-search for city in form-address and then change his button search engine radius , but it doesn't work.
I tried giving radius from the parent and still nothing work ,
I tried to make a value to call the function and I call it in the parent section.
Please help me thank you
Here is the code that causes the trouble

Textview starting next to view on a line and back to begining on the next

I'm sorry I didn't find a clearer title :/ I'm not english native, if you've a better idea, please tell me.
I'm looking for coding a view like that :
my problem is to start the body of my cell next to the name of the name of the author (which length is obviously unknown and variable). The name (blue text) and pic are clicable, the pic is a custom view.
Have you encountered a problem like this ?
I could play with Spanned, but the custom round imageview is making it difficult. its width is fixed in dp btw, maybe I can add a padding to the first line ?
Thanks a lot !

calabash-android: click on image by name

Is that possible to click on image to open the dialog box. because I want to open dialog box by clicking on image which has only name, there is no other property associated with that image.
To get this issue I tried with x,y co-ordinate method as well, but again the issue is when I changed the phones the screen size matters. so I did not able to use that too. other than this I did not get any other option to resolve the issue. I do not get much about this on web.
Does anybody know the solution, that will be helpful?
Kind Regards,
Vaibhav
I'm not really sure what you mean by 'has only name', but if there is no other way to locate the image view, you could use the index.
To find the index,
query "* ImageView" and see which one matches.
Then you can interact with it like so:
tap "ImageView index:0" #or whatever index
Note: If it was actually ID'd somehow (e.g. had a ContentDescription), you could do
tap "ImageView marked:'<whatever ID>'"

Fetching Texting and numbers from Image Clicked in Android

I am trying to click a image from camera and then trying to get the text and numbers within the image and display in textview in android. I am confused about how to achieve this through my Java code. Does anyone had a similar problem and knows how to solve it? I would be grateful if somebody could help me!Thanks in advance.
If I understood your question correctly you want to get text from an image. You can see this

xml for dropdown text

I have used this forum when I didn't know how to do something, but now I have decided to begin participating in it.
I would like to know how could I do a dropdown text (maybe it has a specific name and that's why I don't find any results on the internet). I mean, I have some tags in the screen (About, Company, Contact, ...). Each of these tags has a down arrow on the right side, and when I click it, it has to display (and hide if it's clicked again).
Here are the links with the images of what I want to do.
http://i45.tinypic.com/4fzoso.png
http://i47.tinypic.com/2u5886q.png
Thank you in advance!
You should use an ExpandableListView component.
There is a tutorial for it here.
Finally I did it with ImageViews and TextViews using the property android:visibility. Now that it's a static version is working properly. I hope that it continues working well when taking the information from the DB

Categories

Resources