SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Nov 2009
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Getting syntax error when I use GetRoProperty

    Hi,
    I am getting a syntax error of detail: "end of statement" for the below code. Can you tell the reason?

    sContents = Browser("Home").Page("Competitive").WebTable("Summ ary").Web Element("Summary"). GetROProperty("innertext")

    Thanks.

  2. #2
    Senior Member
    Join Date
    Jun 2007
    Location
    Toronto, Canada
    Posts
    362
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Getting syntax error when I use GetRoProperty

    if you have pasted the code exactly from your script then yes there is an end of statement syntax error i.e. You have a space before getROproperty. Remove it and it will be fine

  3. #3
    Member
    Join Date
    Nov 2009
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Getting syntax error when I use GetRoProperty

    Hi,
    Thanks. I removed it. Still I am getting the same error. I just removed the variable. then it shows that the syntax is valid. (If I remove the variable, then what is the use of the GetRoProperty)
    Is there any issue with the variable?
    I couldn't understand. Please help me.

  4. #4
    Junior Member
    Join Date
    Nov 2007
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Getting syntax error when I use GetRoProperty

    try this.....

    sContents = Browser("Home").Page("Competitive").WebTable("Summ ary").Web Element("Summary"). GetROProperty "innertext"

  5. #5
    Member
    Join Date
    Nov 2009
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Getting syntax error when I use GetRoProperty

    Hi,
    I am getting the same error. I just removed the variable. then it shows that the syntax is valid. (If I remove the variable, then what is the use of the GetRoProperty)

  6. #6
    Advanced Member Anshoo Arora's Avatar
    Join Date
    Oct 2007
    Location
    New Delhi, India
    Posts
    635
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Getting syntax error when I use GetRoProperty

    As Ambience said:

    [ QUOTE ]
    if you have pasted the code exactly from your script then yes there is an end of statement syntax error i.e. You have a space before getROproperty. Remove it and it will be fine

    [/ QUOTE ]


    sContents = Browser("Home").Page("Competitive").WebTable("Summ ary").WebElement("Summary").GetROProperty("innerte xt")
    Regards,

    Anshoo Arora
    Relevant Codes

  7. #7
    Senior Member
    Join Date
    Jun 2007
    Location
    Toronto, Canada
    Posts
    362
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Getting syntax error when I use GetRoProperty

    Yes Anshoo is correct..its also the space between web & Element.. It should be one word i.e. WebElement. I forgot to mention that..

  8. #8
    Member
    Join Date
    Nov 2009
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Getting syntax error when I use GetRoProperty

    thank you all.
    It is working now.

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:09 PM.

Copyright BetaSoft Inc.