SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2003
    Location
    United States
    Posts
    32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to do on DIV and SPAN tags?

    Hi guys,
    I'm new QTP and trying my hands on automating my insurance domain project. The issue is on creating Shared Object Repository(SOR) for the WebEdit and WebList fields in a web page(it is across numerous web pages), it's working fine. But if I use Dynamic model using such as
    Browser("micClass:=Browser").Page("micClass:=Page" ).WebEdit("name=x","html tag=Span").Set "y"
    it is not recoginzing the control and the test is not proceeding further. Could anyone tell me on how to resolve this and also tell me how to do scripting on DIV and SPAN tags?

  2. #2
    Senior Member
    Join Date
    Jul 2003
    Location
    Denver
    Posts
    210
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to do on DIV and SPAN tags?

    [ QUOTE ]
    Hi guys,
    I'm new QTP and trying my hands on automating my insurance domain project. The issue is on creating Shared Object Repository(SOR) for the WebEdit and WebList fields in a web page(it is across numerous web pages), it's working fine. But if I use Dynamic model using such as
    Browser("micClass:=Browser").Page("micClass:=Page" ).WebEdit("name=x","html tag=Span").Set "y"
    it is not recoginzing the control and the test is not proceeding further.


    [/ QUOTE ]

    Browser("micClass:=Browser").Page("micClass:=Page" ).WebEdit("name:=txtUserName","html tag:=INPUT").Set "User1"


    [ QUOTE ]

    Could anyone tell me on how to resolve this and also tell me how to do scripting on DIV and SPAN tags?

    [/ QUOTE ]

    msgbox Browser("micClass:=Browser").Page("micClass:=Page" ).WebElement("innertext:=x","html tag:=DIV").GetRoProperty("innerhtml")

 

 

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.54%
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 09:45 AM.

Copyright BetaSoft Inc.