SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Jan 2006
    Location
    8343 priceton sq blvd e apt 1110, jacksonville fl 32256
    Posts
    81
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    setting DP for web page have no title

    in my aplication web pages reads the title from xml file ,for some webpages my developers didn't put titles for that page it just take the url as title

    when iam recording that web page the step is

    Browser("RADAS: User Login Form").Page("Page").WebButton("Create").Click

    i want to create dp for webpages if there is title means i put title ok but web pages dont have title i put micclass
    like
    Browser("RADAS: User Login Form").Page("micClass:= Page").WebButton("Name:=Create").Click


    but it shows run time error like object not support this method


    Browser("micClass:= Browser").Page("micClass:= Page").WebButton("Name:=Create").Click

    for this also it shows general error

    some one could explain how we can set dp for web pages have no title

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Universe
    Posts
    393
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: setting DP for web page have no title

    Hi,

    Use tihs line of code.

    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">Browser(&quot;Title:= *.*&quot.Page(&quot;Title:=*.*&quot.WebButton(&quot;Name:=Create&quot.Click</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Thanks,
    Wasim

  3. #3
    Member
    Join Date
    Jan 2006
    Location
    8343 priceton sq blvd e apt 1110, jacksonville fl 32256
    Posts
    81
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: setting DP for web page have no title

    it shows run time error like

    Cannot find the "WebButton" object's parent "Page" (class Page). Verify that parent properties match an object currently displayed in your application.

  4. #4
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: setting DP for web page have no title

    It should be

    Browser("Title:= .*","index:=0").Page("Title:=.*").WebButton("Name: =Create").Click

  5. #5
    Member
    Join Date
    Jan 2006
    Location
    8343 priceton sq blvd e apt 1110, jacksonville fl 32256
    Posts
    81
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: setting DP for web page have no title

    Browser("Title:= .*","index:=0").Page("Title:=.*").WebButton("Name: =Cancel").Click

    it working

    first time i tried this

    Browser("RADAS: User Login Form").Page("Title:=.*").WebButton("Name:=Cancel") .Click


    i recorded the browser Browser("RADAS: User Login Form")
    why its not working

  6. #6
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: setting DP for web page have no title

    If it's recognizing the browser object then it should work.

  7. #7
    Member
    Join Date
    Jan 2006
    Location
    8343 priceton sq blvd e apt 1110, jacksonville fl 32256
    Posts
    81
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: setting DP for web page have no title

    in before message(whati posted) is how to set data for message body for that u said add objects to OR and then generate step ,i did that the step is
    Browser("RADAS: User Login Form").Page("Page").ActiveX("DHTML Edit Control Safe").Page("Page").WebElement("WebElement").Objec t.innertext="text"

    but for that i created dp i dont want to use OR see below

    Set act=description.Create
    act("progid").value="DHTMLSafe.DHTMLSafe.1"

    Set web1=description.Create
    web1("html tag").value="BODY"

    Browser("Title:= .*","index:=0").Page("Title:=.*").WebEdit("Name:=F ILE_DESC").Set "test"

    Browser("Title:= .*","index:=1").Page("Title:=.*").ActiveX(act).Pag e("Title:=.*").WebElement(web1).Object.innertext=" text"
    Browser("Title:= .*","index:=0").Page("Title:=.*").WebButton("Name: =Save").Click

    but i got error

    Cannot find the "WebElement" object's parent "Page" (class Page). Verify that parent properties match an object currently displayed in your application

  8. #8
    Senior Member
    Join Date
    Jan 2000
    Location
    USA, CA
    Posts
    1,998
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: setting DP for web page have no title

    Browser("Title:= *.*","index:=0").Page("Title:=*.*")....

  9. #9
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: setting DP for web page have no title

    Janna "*.*", QTP has different type of r.e. as compared to the ones that we used on dos prompts, it should be ".*" only "." for any character and "*" for any number of instances of the charachter.

    Well coming back to the problem, i saw that you used "index:=1" in your code??
    Browser("Title:= .*","index:=1").Page("Title:=.*").ActiveX(act).Pag e("Title:=.*").WebElement(web1).Object.innertext=" text"

    Are you doing it in a new browser or the same? if it's same then use index:=0 only. If it still does not work then use
    Browser("Title:= .*","index:=0").Page("Title:=.*").ActiveX(act).Pag e("micClass:=Page").WebElement(web1).Object.innert ext="text"

 

 

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 10.71%
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 06:40 AM.

Copyright BetaSoft Inc.