SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: DIV TAG Window

  1. #1
    Member
    Join Date
    Jun 2007
    Posts
    148
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    DIV TAG Window

    Hi,
    Anyone has experience with automating DIV TAG Window. Initially I started with basic recording and I saw that QTP was generating steps. Then I ran the script and it didn't do anything(like inputing data in the box or changing some values). I manually added the objects to OR and tried highlighting them but QTP wasn't able to find any objects. I also tried searching this forum and reading some threads but didn't find any useful info (used +div tag window keywords for searching)
    Do I need a plugin/add-on? using QTP 9.2 for testing. any suggestions would be greatly appreciated.
    Thanks in advance
    "God doesn't play dice" - Einstein

  2. #2
    Senior Member
    Join Date
    Dec 2004
    Location
    NY, USA
    Posts
    123
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DIV TAG Window

    hi tjgomes,
    I am sorry, but I didn't get what that DIV TAG window is exactly.
    DIV tag is generally used in HTML to mark division or section on the web page. So I didn't quite get what 'DIV tag window' could be.
    request you to pls clarify /explain the object in more detail.

    -bharat

  3. #3
    Member
    Join Date
    Jun 2007
    Posts
    148
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DIV TAG Window

    you are right bharat. that is what i meant, sorry for the confusion. the link doesn't open a new browser window, just a div tag and I am not able to do any automation on that div tag.
    "God doesn't play dice" - Einstein

  4. #4
    Senior Member
    Join Date
    Dec 2004
    Location
    NY, USA
    Posts
    123
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DIV TAG Window

    So, there is a link within DIV tag? and you are trying to click on it?
    If possible, request you to pls attach the HTML source code of you web-page.

    -bharat

  5. #5
    Member
    Join Date
    Jun 2007
    Posts
    148
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DIV TAG Window

    well there are some weblist on the div tag from which i want to choose some items, input date etc. but nothing is happening. i am attaching the html source.
    Attached Files Attached Files
    "God doesn't play dice" - Einstein

  6. #6
    Senior Member
    Join Date
    Dec 2004
    Location
    NY, USA
    Posts
    123
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DIV TAG Window

    Hi tjgomes,
    although the objects on which you want to perform any action(like combobox list, textbox) are within a DIV tag, you can access those objects in the normal usual way the objects are accessed:
    e.g to select 'R-3' option from the 'Fund' weblist on your page, following should work:

    Browser("title:=Alpha.*").Page("title:=Alpha.*").W eblist("html id:=ctl00_ctphBody_ddInvestable").Select("R-3")

    -bharat

  7. #7
    Member
    Join Date
    Jun 2007
    Posts
    148
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DIV TAG Window

    Hi Bharat,
    I get object not found in OR message when I try your suggestion.
    When I recorded, this is the step that QTP generated
    Browser("Alpha Frontier >> Portfolio").Page("Alpha Frontier >> Portfolio").Frame("window_1187972429448_content"). WebList("ctl00$ctphBody$ddInvestable").Select "R-3 - 1"

    Thanks for your continuing support.
    "God doesn't play dice" - Einstein

  8. #8
    Senior Member
    Join Date
    Dec 2004
    Location
    NY, USA
    Posts
    123
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DIV TAG Window

    [ QUOTE ]
    I get object not found in OR message when I try your suggestion.


    [/ QUOTE ]

    not found in OR? I wonder, because we were trying to access the object with DP.

    -bharat

  9. #9
    Member
    Join Date
    Jun 2007
    Posts
    148
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DIV TAG Window

    I also tried this

    Browser("Alpha Frontier >> Portfolio").Page("Alpha Frontier >> Portfolio").Frame("window_1187972429448_content"). WebList("html id: = ctl00_ctphBody_ddInvestable").Select ("R-3 - 1")

    but no luck
    "God doesn't play dice" - Einstein

  10. #10
    Senior Member
    Join Date
    Dec 2004
    Location
    NY, USA
    Posts
    123
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DIV TAG Window

    oh, the recorded code shows that the page has frames, and the object (WebList) is inside a frame - window_1187972429448_content. This might be the reason for failure of our DP code.
    So when you reply the recorded code, do you get any error???


    btw, in the Object spy, if you look at the frame object, you will be able to find its ID or name. Then we can add the frame in our DP code in the following way:

    Browser("title:=Alpha.*").Page("title:=Alpha.*").Frame(id:=<<frame id captured from object spy>&gt.Weblist("html id:=ctl00_ctphBody_ddInvestable").Select("R-3")

    -bharat

 

 
Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.11%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:52 PM.

Copyright BetaSoft Inc.