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

Selecting Legacy Accessible and similar objects using Winium #104

Open
rwb7868 opened this issue Sep 24, 2019 · 0 comments
Open

Selecting Legacy Accessible and similar objects using Winium #104

rwb7868 opened this issue Sep 24, 2019 · 0 comments

Comments

@rwb7868
Copy link

rwb7868 commented Sep 24, 2019

I'm trying to discover a way to select attributes with a decimal point in the attribute name when testing desktop applications using Winium.

Here is a sample of a drop-down object I'm looking at using both Inspect & UISpy:
Inspect View
Figure A: Object viewed from Inspect

UISpy View
Figure B: Object viewed from UISpy

What I'm trying to do is create a method capable of verifying the object that has been selected in the drop-down box. In this case, that would be 'Modbus ASCII'. In both Inspect & UISpy, the attribute name associated with that object is 'Selection.Selection'. You can also see it's considered a 'list item'. The issue is when I attempt to access this attribute even to just print it, I can't access it. Some of the options I've tried are...

print "Mode: ", mod_mast_port_opts.find_element_by_class_name("ComboBox").get_attribute("Selection.Selection")
print "Mode: ", mod_mast_port_opts.find_element_by_class_name("ComboBox").get_attribute("Selection")

Neither of these work and the return back with nothing. When I did some digging, I found a link on your site, which led me to another page suggesting it's possible to access those attributes. However, I've exhausted multiple options in trying to get 'Selection.Selection' and the Legacy attributes to print to the CLI, which tells me I can't use its attribute to verify behaviors in my test cases.

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