if it works manually and not automated it sounds like a sort of race condition caused by the speed at which the automation is executing.
You could try simulating that in irb by making a little do structure (or a 1.times do loop) that you nest the comands in, so it will execute them quickly instead of at whatever pace you can manually type in the commands, see if that simulates the issue. if it does you can experiment with some waits between the events to see if you can get it to work reliably. On Apr 16, 2:42 am, Jarmo Pertman <[email protected]> wrote: > As I said, then everything works correctly when I use debugger and > execute commands one by one (or even irb), so the problem is not > related with invoking wrong event. Also, I have checked that onclick > event is attached to it. > > On Apr 15, 11:18 pm, Chuck van der Linden <[email protected]> wrote: > > > > > Are you sure what event the javascript is looking for? have you > > looked at the object on the page and seen what event handlers are > > defined for it? maybe it's not the 'click' event that it wants? > > maybe it wants some other sequence such as onfocus or onmouseup- Hide > > quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
