SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Dec 2007
    Posts
    66
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Launch url from Global sheet (loop statement)

    Hi everybody

    I'm strugling with the following scenario:

    I've got a Global sheet with 110 urls in the firts colunm.
    I would like to find a script (a loop I guess) that allows me:

    1. launch the first url
    2. Execute test script on that webpage
    3. go back to cloumn and launch the second url in the list
    4. Repeat test script on the secon page
    .
    .
    .

    I wrote the script I needed, but what I need now is the method to use in a loop the urls form the Global sheet.

    Another thing, I'm using the Action Sheet to export the resuklt of the test. This should not interfer with the data in the Global sheet, right?

    Thank in advance

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    New Jersey
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Launch url from Global sheet (loop statement)

    initially get the URL count and you can use something like this

    For i = 1 to URLCount
    DataTable.SetCurrentRow(i)
    URL = DataTable.Value("URL Column Name")

    SystemUtil.run "Iexplore","URL"
    'Your test Code here
    ----
    ----
    ----
    ----

    Next
    Ganesh Varma

  3. #3
    Moderator
    Join Date
    Jan 2007
    Location
    Pittsburgh, PA
    Posts
    2,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Launch url from Global sheet (loop statement)

    If Not Browser("micclass:=Browser").Exist(5) Then
    SystemUtil.run "Iexplore.exe","about:blank"
    End If
    RowCnt = DataTable.GetRowCount
    For i = 0 To RowCnt
    DataTable.SetCurrentRow(i)
    URL = DataTable.Value("URLColumnName",dtGlobalSheet)
    Browser("micclass:=Browser").Navigate URL
    Browser("micclass:=Browser").Sync
    'Test script steps
    '.........
    '.........
    Next

 

 

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 01:59 PM.

Copyright BetaSoft Inc.