-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
How can I get ListboxItem Children #854
Comments
So just to confirm you would like to loop through the children of a specific control? I am working with C# and .NET version of Appium library, but I assume something similar would also work for you in Python:
Hope this helps, any queries please ask. |
Thanks for the reply, using xpath produces the exact same result. (The child.text is Model.Main.Startup.StartUpCheckStepViewModel) I can find the text if I do a
But this requires explicit knowledge of all errors and what screens they appear on. I see I can get self.driver.page_source xml and see the list there. In each listitem there are 4 elements, it is the 4th element I'm interested in, but no text is being captrured, maybe it is there later on in the process. I'll check further:
|
Ok just a quick spot in the code that you have printed try (elements with an s):
Although if that is the PageSource dump that you have attached your right, the above code will not make a difference as the Text property (Name property in the PageSource) is blank. Just some thoughts on this:
|
@hicks86 Thanks, I realized that the button 'Try again' that appears at the end if there are errors and I test for, was in the xml, but it was not clickable before it appears . so waiting for it to become clickable fixed it. (I cant click it because the it just reread config). I use the winappdriver directly with the appium-python-client:
Thanks, |
What is winappdrivers equivalent to get_attribute('innerHTML')?,
I do not seem to get anything from indicating there are children or something inside the boxes.
I like to find all text items for each listboxitem, because there can be lots of them and anyone the have a text item in the 4th row indicated an error
I do not see anything related to the children:
The text was updated successfully, but these errors were encountered: