SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Mar 2004
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    read text from webpage using SilkTest

    Hi,

    I need to read text from a webpage from any place. It may be some text in a <Br> </br> tag or in a complex designed table. How to read text using SilkTest for such cases for example, when I login a website I have to write a testcase to verify whether the text "Welcome to test.com" appears in the top most corner.

    I have to check for nearly 5-10 text or numbers in a web page like this. Writing 1 test case for each will not make sense as I have 500 test cases like that in different pages across my web site. Instead, I want to write a function which takes in the parameters like the string to be found and verified and the kind of tag or object identifier?

    Has anyone done this kind? Please do give me some best practices to verify such kind of functionality.

    Thanks in advance.
    kris

  2. #2
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: read text from webpage using SilkTest

    try:</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">Verify (BrowserPage.HtmlText(&quot;Welcome to test.com&quot.Exists (), TRUE)</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">As far as verifying if the text is in the top corner you could call GetRect and verify that it's position falls within a range of accepted values.

 

 

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 04:25 PM.

Copyright BetaSoft Inc.