04-27-2011, 02:57 PM
I'll try to explain more clearly...
I have a test that selects a value from a dropdown list. There is a javascript function on this dropdown, that submits the form on change. There is also another javascript on it, that shows up a alert dialog with "request is already in progress" if you try to submit a form while a page is loading (ie a doubleclick on submit button).
If I manually select a value from a dropdown, the webpage refreshes without a problem (form is submitted). If I execute the qpt step that selects a value from a dropdown, i get "request is already in progress" message. It looks like qpt somehow "doubleclicks" the dropdown.
I have tried waiting up to 10 minutes, and this does not help.
Below a simple script that I've recorded
When I choose "run to step" option, and stop before the last line, I can select the value manually without a problem. If I run the last step, I get the popup error message.
I have a test that selects a value from a dropdown list. There is a javascript function on this dropdown, that submits the form on change. There is also another javascript on it, that shows up a alert dialog with "request is already in progress" if you try to submit a form while a page is loading (ie a doubleclick on submit button).
If I manually select a value from a dropdown, the webpage refreshes without a problem (form is submitted). If I execute the qpt step that selects a value from a dropdown, i get "request is already in progress" message. It looks like qpt somehow "doubleclicks" the dropdown.
I have tried waiting up to 10 minutes, and this does not help.
Below a simple script that I've recorded
Code:
Browser("MyApp").Page("MyApp").Frame("login").WebEdit("name").Set "oasis"
Browser("MyApp").Page("MyApp").Frame("login").WebEdit("password").SetSecure "4db7e053f95b8e83255675bdb31be3df2347"
Browser("MyApp").Page("MyApp").Frame("login").WebButton("Login").Click
Browser("MyApp").Page("Home").Link("Add data").Click
Browser("MyApp").Page("Case Creation").WebElement("WebTable").Click
Browser("MyApp").Page("Case Creation").WebButton("Next").Click
Browser("MyApp").Page("Add data").WebList("source").Select "Telephonic" --this is where i get the error
When I choose "run to step" option, and stop before the last line, I can select the value manually without a problem. If I run the last step, I get the popup error message.