Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cascading heirarchy drop down list timing problem
#5
Solved: 11 Years, 4 Months, 3 Weeks ago
Thank you both for your generous help. With some fiddling around, I was able to find a solution.

I tried your solution first, Ankur. However, the readystate for the drop down lists was always set to "complete". I do not quite know why, since I did not write the code for the web app page.

I went on to try jsknight1969's solution, and after a while, I was able to make it work.

Here is the code, modified from the example I gave above:
Code:
Dim dpBrowser
dpBrowser = "micclass:=Browser"
Dim dpPage
dpPage = "micclass:=Page"

country = Trim(DataTable("country", dtLocalSheet))
state_province = Trim(DataTable("state_province", dtLocalSheet))
city = Trim(DataTable("city", dtLocalSheet))

<for loop here>
If country <> "" AND state_province <> "" AND city <> "" Then
    Do While Browser(dpBrowser).Page(dpPage).WebList("html id:=.*ddlCountry.*").GetROProperty("Items count") < 2
        Wait(1)
    Loop
    Browser(dpBrowser).Page(dpPage).WebList("html id:=.*ddlCountry.*").Select country

    Do While Browser(dpBrowser).Page(dpPage).WebList("html id:=.*ddlState_Province.*").GetROProperty("Items count") < 2
        Wait (1)
    Loop
    Browser(dpBrowser).Page(dpPage).WebList("html id:=.*ddlState_Province.*").Select state_province

    Do While Browser(dpBrowser).Page(dpPage).WebList("html id:=.*ddlcity.*").GetROProperty("Items count") < 2
        Wait (1)
    Loop
    Browser(dpBrowser).Page(dpPage).WebList("html id:=.*ddlcity.*").Select city
End If
<some other code>
<save entry>
<end for loop>

"Items count" < 2, while a crude method, works quite well for properly measuring the timing. Again, thank you for the help.

Incite1321
Reply


Messages In This Thread
RE: Cascading heirarchy drop down list timing problem - by incite1321 - 10-10-2009, 02:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare second web list value according to the first web list value roselin6 1 2,893 10-07-2015, 09:14 PM
Last Post: supputuri
  Drop-Downs in excel sheet indianinworld 1 3,729 03-01-2011, 08:40 PM
Last Post: indianinworld
  How to do DP for a site with multiple heirarchy? viv_karthy 1 1,710 05-13-2009, 04:32 PM
Last Post: tarunpandey4@gmail.com
  Drop-down box mahadevan.swamy 5 4,393 11-03-2008, 12:47 PM
Last Post: amilar
  Unable to Record Drop down Menu and it's list items samuluru 3 4,449 07-02-2008, 01:48 PM
Last Post: nageshpv

Forum Jump:


Users browsing this thread: 2 Guest(s)