jarmo / RAutomation

RAutomation
MIT License
100 stars 33 forks source link

Button not working #124

Closed Debadatta closed 5 years ago

Debadatta commented 5 years ago

@leviwilson window = RAutomation::Window.new(:title => 'XXXXXXX', :adapter => :ms_uia) window.button(:title => "Log In").click { true

window is opened as a popup . There are two textbox for username and password . I can set the values for these. But the Login Button not working.

Error: RAutomation::UnknownButtonException: Button {:title=>"Log In"} doesn't exist on window {:index=>0, :title=>"XXXXXXX"}!

In windows 10 it is working but windows 7 not working

Priya-asfriend commented 5 years ago

Any update on the issue pls? The same scripts are working from local system however while running the scripts from VM, it fails. scripts are able to identify text boxes but did not the button objects.

jarmo commented 5 years ago

Sorry, but it's really hard to help without having access to the application under test etc. I recommend to set a breakpoint into your code and then evaluate there. For example, retrieve all the buttons and see how many does RAutomation find and then print out their titles (now that I think of it - is it even title for button and not a value - try value instead of title!).

Closing this since this does not seem to be an issue directly with RAutomation, but is rather a problem between different Windows versions and your app. If you can provide a reproducible example then it would be possible for someone to help.

PS! Try to keep questions like these on StackOverflow instead of opening an issue here.