Has anyone considered not using JS alerts, in favor of a HTML based
solution that does a 'modal alert' I know there's a bunch of them in
Jquery and other handy libraries. Those are a LOT easier to work with.
On Thursday, May 9, 2013 12:42:54 PM UTC-7, dubsbox wrote:
>
> I'm testing a home-gro
I had a similar situation and i jusy repeated the same think twice.
Something like:
When /^i add me to the cart$/ do
browser.alert.ok
browser.alert.ok
end
On Thursday, May 9, 2013 3:42:54 PM UTC-4, dubsbox wrote:
> I'm testing a home-grown shopping cart application which has scenarios
> wher
You could overwrite the alert function in JavaScript before triggering the
first alert. Something like this:
browser.execute_script "window.alert = function() {}"
Jarmo Pertman
-
IT does really matter - http://itreallymatters.net
On Friday, May 10, 2013 10:19:39 PM UTC+3, dubsbox wrote:
>
>
Thank you for the response, Ankita. Unfortunately, it appears that using
the browser.alert.wait_while_present does not help me move forward to close
out the second alert pop-up. Rather, it achieves the same result of
"hanging" my script when the second pop-up appears. This makes sense as
wai
How about using
browser.alert.wait_while_present
this will wait for the next line of code to execute until alert goes away
On Friday, May 10, 2013 5:42:54 AM UTC+10, dubsbox wrote:
>
> I'm testing a home-grown shopping cart application which has scenarios
> where adding an item to the cart resu