Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drop Down menu loses value
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
We recently updated to IE10. We were using IE8 as our browser. In 8 our scripts ran without issues. We are running UFT 11.52 with the latest patches.

In one application I have a drop down menu that selects a state from a list of 4. UFT will select the state but as it moves to the next step the state field returns to the original default value, causing an error in the application and preventing the script from continuing. Listed below is the coding for the 3 steps of this simple action.

Code:
"Browser("Homeowners").Page("Homeowners").WebEdit("Effective Date").Set DataTable("EffectiveDate", dtLocalSheet)
Browser("Homeowners").Page("Homeowners").WebList("State").Select DataTable("State", dtLocalSheet)
Browser("Homeowners").Page("Homeowners").Link("Next >> Bottom").Click"
Reply
#2
Solved: 10 Years, 9 Months, 2 Weeks ago
Hi, you can try this:

Code:
Set WshShell=CreateObject("WScript.Shell")

"Browser("Homeowners").Page("Homeowners").WebEdit("Effective Date").Set DataTable("EffectiveDate", dtLocalSheet)


Browser("Homeowners").Page("Homeowners").WebList("State").activate

WshShell.SendKeys ("{DOWN}")

Browser("Homeowners").Page("Homeowners").WebList("State").Select DataTable("State", dtLocalSheet)
Reply
#3
Solved: 10 Years, 9 Months, 2 Weeks ago
I changed ".activate" to ".Click". This has solved my problem. Thanks for the help.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Drag and drop issue excellentpawan123 0 2,744 01-13-2015, 05:04 PM
Last Post: excellentpawan123
  Drop down list class is a link thotamurali 2 4,168 08-22-2014, 05:48 PM
Last Post: thotamurali
  Selecting values from drop down using QTP. prempujaripati 2 46,737 06-26-2014, 06:06 PM
Last Post: rasmirani
  issue in drag and drop excellentpawan123 0 2,320 05-15-2014, 04:36 PM
Last Post: excellentpawan123
  Random Values from Drop-Down profqa 5 6,002 12-06-2013, 09:01 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)