Iam calling following functions to click on menus in my applicaiton. first time when I call this functon workign fine, but second tiem it is not working when I call second time the fucntio is not calling Line5: (ie.send_keys)
I pass Menu name , Short key, short key(if any) as parameters. i.e I call the function as Mneu_click("ctl00DefaultContentmnuMain_4", "{A}", nil) def Menu_Click(_MenuID, _MenuItem,_SubMenu ) Line1: @@ie.table(:id, _MenuID).fire_event("onmouseover") Line2: sleep 4 Line 3: @@ie.focus() # IE.focus works for IE 7.0 Line 4: sleep 2 Lien 5: @@ie.send_keys(_MenuItem) Line 6: sleep 2 Line 7: @@autoit.Send(_MenuItem) Line 8: if (_SubMenu !=nil) Line 9: sleep 3 Lien 10: @@ie.send_keys(_SubMenu) Line11: end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---