[wtr-general] Re: Selenium::WebDriver::Error::UnhandledAlertError: unexpected alert open: {Alert text : Bad response - parser error!}

2018-12-06 Thread Titus Fortner
Like I said, this is a real error, so you need to talk to your devs to figure out why you're getting this. -- -- Before posting, please read https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group. In short: search before you ask, be nice.

[wtr-general] Re: Selenium::WebDriver::Error::UnhandledAlertError: unexpected alert open: {Alert text : Bad response - parser error!}

2018-12-06 Thread NaviHan
Basically the script gets a focus on "Place Order" button and clicks it. At this point the alert occurs 2018-12-07 10:33:21 INFO Selenium>>> http://127.0.0.1:9515/session/5ee6d653d161aabc0a8fe64ac2c8391f/execute | {"script":"return (function(){\nreturn

[wtr-general] Re: Selenium::WebDriver::Error::UnhandledAlertError: unexpected alert open: {Alert text : Bad response - parser error!}

2018-12-06 Thread NaviHan
Hi Titus Just before the error what I get is 2018-12-07 10:33:24 INFO Selenium <- {"sessionId": "5ee6d653d161aabc0a8fe64ac2c8391f","status":0,"value":null} Time after is 2018-12-07 10:33:24 +1100 2018-12-07 10:33:24 INFO Selenium -> POST session/ 5ee6d653d161aabc0a8fe64ac2c8391f/element

[wtr-general] Re: Selenium::WebDriver::Error::UnhandledAlertError: unexpected alert open: {Alert text : Bad response - parser error!}

2018-12-04 Thread Titus Fortner
Put that line of code in your before hook. When an unexpected alert pops up, it'll tell you what exactly was just sent to the browser that caused it. It spits out a lot of text to console, so hopefully the issue is happening frequently enough that you can turn it on for a short time and

[wtr-general] Re: Selenium::WebDriver::Error::UnhandledAlertError: unexpected alert open: {Alert text : Bad response - parser error!}

2018-12-04 Thread NaviHan
Thanks Titus, Yes I know the issue with, "Watir::Wait.until {element}" this is all over our automation code , the previous automation tester did this practise. In on my list to clean this up But sorry I didnt quite understand the statement "Also log the wire calls getting sent to the driver

[wtr-general] Re: Selenium::WebDriver::Error::UnhandledAlertError: unexpected alert open: {Alert text : Bad response - parser error!}

2018-12-04 Thread Titus Fortner
The issue is that sometimes an alert has popped up. Whenever an alert is present, the driver will not accept any commands that do not deal with that alert. Just like a user can't do anything on a site without dismissing it. That includes screenshots. Rescuing the error won't help if you just