jarmo / RAutomation

RAutomation
MIT License
100 stars 33 forks source link

Timeout error #108

Closed mhussain16 closed 6 years ago

mhussain16 commented 8 years ago

its putting the password in the window but giving me the following error;

RAutomation::WaitHelper::TimeoutError: timed out after 60 seconds

used wait command but still not working.

need help please

leviwilson commented 8 years ago

If you could provide a code sample (including which adapter you are using) as well as a stack trace, that would be helpful in troubleshooting your issue.

mhussain16 commented 8 years ago

code sample is followed;

def security_click window = RAutomation::Window.new :title => "window title" window.activate sleep 2 window.text_field(:class =>"Edit").set ("some value") window.button(:value => "&OK").click end

it puts the value on the text field but doesn't go further after that. doesn't click on OK button. gives me the error; RAutomation::WaitHelper::TimeoutError: timed out after 60 seconds

mhussain16 commented 8 years ago

i am using win 32 adapter

leviwilson commented 8 years ago

Do you have the stack trace from the TimeoutError?

I can't recall, but I think you may want to window.button(value: '&OK').click { true }

jarmo commented 6 years ago

Closing this due to inactivity.