[wtr-general] Can't .click an a in watir-webdriver
First off: I'm using twitter bootstrap to create a JS modal. When the modal pops up, I can close it by (mouse) clicking on the following element: a class=btn href=javascript:void(0); data-dismiss=modalClose/a The problem is, I can't do a .click on that element using watir-webdriver - it just blocks indefinitely. I can fire an onclick event, but that causes other issues. Any ideas why .click doesn't work? Any pointers on how to investigate whats going on? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Can't .click an a in watir-webdriver
On Tue, Dec 4, 2012 at 9:37 AM, Nigel Smith nachosm...@gmail.com wrote: Any ideas why .click doesn't work? Please provide link to the page, link to a similar page or relevant HTML. Željko -- https://leanpub.com/watirbook -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Can't .click an a in watir-webdriver
Looks like tonight its 2/2 to me for causing the issue ... I had a closer look at the code, and got a suspicion that maybe I was not clicking the right object. I went to the twitter bootstrap examples page and ran a similar test, and it worked fine. So, I did a more explicit selection for the element I was after, and surprise surprise found that the click() was working fine. We've got a few of those modals declared in the same page, and I guess I was not selecting the right one to call click() on... Thanks for getting back so quickly Željko. Cheers. -Nacho On Tuesday, December 4, 2012 10:09:19 PM UTC+10, Željko Filipin wrote: On Tue, Dec 4, 2012 at 9:37 AM, Nigel Smith nacho...@gmail.comjavascript: wrote: Any ideas why .click doesn't work? Please provide link to the page, link to a similar page or relevant HTML. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Can't .click an a in watir-webdriver
BTW, I really like the book! Highly recommended! -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com