jarmo/RAutomation

Timeout error

Closed this issue · 5 comments

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

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.

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

i am using win 32 adapter

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

Closing this due to inactivity.