Help in overcoming my testing app problem

General discussion about eValid, its characteristis and applications.

Help in overcoming my testing app problem

Postby CorreyC » Fri Feb 27, 2015 12:43 pm

Afternoon:

In our application, we have a confirmation dialog and on accepting it the Page will refresh and shows a Order confirmation number.

With Webdriver I tried to accept the alert by using alert().accept and also tried the Enter key with Robot class but in both the cases the Alert is accepted but the page is not refreshed.

I also tried to force refresh the page but to my surprise the steps after alert accept are not executed, I have steps for sleep and Object existence.

Please advise me how to get resolve this issue and get the page refreshed after alert accept.

Thanks
CorreyC
 
Posts: 1
Joined: Fri Feb 27, 2015 12:39 pm

Re: Help in overcoming my testing app problem

Postby eValid » Mon Mar 02, 2015 12:03 pm

CorreyC wrote:Afternoon:

In our application, we have a confirmation dialog and on accepting it the Page will refresh and shows a Order confirmation number.

With Webdriver I tried to accept the alert by using alert().accept and also tried the Enter key with Robot class but in both the cases the Alert is accepted but the page is not refreshed.

I also tried to force refresh the page but to my surprise the steps after alert accept are not executed, I have steps for sleep and Object existence.

Please advise me how to get resolve this issue and get the page refreshed after alert accept.

Thanks


Hiya:

Thanks for your inquiry.

As you know, this is not the WebDriver forum, but it is a good question and we'll try to answer it.

The question you are asking is, "How do I force refresh?"

eValid is fortunate in that, unlike WebDriver, certain window manipulation commands are built in.

One of these is "Reload wid" where wid refers to the window identifier. The home window for an eValid session is always window "0" and each opened sub-window is numbered 1,2,3...

The only thing you need to know is the window id number and you can force a window redraw (refresh) whenever you want.

Just FYI, there are other commands in this same group that do the obvious: FontSize, Maximize, Minimize, Resize, Reposition, etc.

-- eValid Support
eValid
 
Posts: 1871
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to General Solution Topics

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons