Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dropdown selection problem
#1
Not Solved
Hi,
I'm recording a test, in which I select a value from dropdown list.
Selecting a value does a page refresh (form submit).
I also have a js script which blocks form submission, if there is already a request in progress.
With QPT i'm always getting an error message from this js script (request is already in progress) when trying to select a value from a dropdown.
The page is loaded, because i can select the value manually without a problem when i run the test and pause just before selecting a value from dropdown.

Any hints?
Reply
#2
Not Solved
could u please explain clearly i m not clear with your problem.

what i can get from you sentances is that script line is getting executed while application is in loading process. if this is the problem then put wait statement before that line.

Wait 20 ' to wait 20 seconds
Reply
#3
Not Solved
Hi,
Are you saying that QTP is trying to select when the page is actually loading.? If i have understood ur question correctly,
Please use Browser("....").Sync to ensure that page is fully loaded
Reply
#4
Not Solved
Hi,

Please add some wait time before and after selection of dropdown.
Hopefully it should work.


Thanks,
UFTEnthusiast
Reply
#5
Not Solved
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

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.
Reply
#6
Not Solved
Can u plz try this and let us know if it works

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").Sync
Browser("MyApp").Page("Add data").WebList("source").Select "Telephonic"
Browser("MyApp").Sync

~vIns~
Reply
#7
Not Solved
Unfortunately this does not help Sad
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Different Type of Dropdown Selector zunebuggy 6 3,341 05-01-2018, 06:46 PM
Last Post: zunebuggy
  Weblist selection diya 11 21,295 06-16-2015, 08:27 PM
Last Post: rajpradeep32
  Not able to click text inside the grid dropdown szkapoo 6 4,566 12-20-2014, 09:43 PM
Last Post: supputuri
  Issue related to dropdown selection(Please help urgent) excellentpawan123 2 4,229 05-31-2014, 12:00 PM
Last Post: excellentpawan123
  Selection of sub menu in Windows Desktop application Shilpa859 0 2,369 10-17-2013, 06:39 PM
Last Post: Shilpa859

Forum Jump:


Users browsing this thread: 2 Guest(s)