Re: [wtr-general] Problem with b.alert.ok

2017-03-22 Thread Raja gopalan
Thank you Titus, but you haven't explained me why inspect method closes the alert? What's the reason? On Wednesday, March 22, 2017 at 3:21:56 PM UTC-7, Titus Fortner wrote: > > Ah, I see what's going on; it's Browser#inspect when I was thinking > Element#inspect. Yes this is a bug, but thankfull

Re: [wtr-general] Problem with b.alert.ok

2017-03-22 Thread Titus Fortner
Ah, I see what's going on; it's Browser#inspect when I was thinking Element#inspect. Yes this is a bug, but thankfully an easy fix. https://github.com/watir/watir/pull/543/commits/1ef85710 Expect this to be released in 6.2.1 later this week. Thanks for reporting it! (and being persistent with a

Re: [wtr-general] Problem with b.alert.ok

2017-03-22 Thread Raja gopalan
I don't understand exactly what you say because it perfectly works with the selenium code "driver.switch_to.alert.accept" I have given the code which I have written below b.element(:id, "txtBillAmt").send_keys("231") b.element(:id, "rdbCardType_1").click b.element(:xpath, "//input[@value='Submit'