SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Feb 2005
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Using Wildcards in Scripts & Functions

    HI QAForum community, can you help me out? How do I enter a wildcard for either of the following statements:

    HTMLImage Click, HTMLText=(some wildcard), Index=8

    HTMLLink Click, HTMLName=(some wildcard), VisualText(some wildcard)

    Thanks so much in advance!

  2. #2
    Junior Member
    Join Date
    Sep 2004
    Location
    Sacramento
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Using Wildcards in Scripts & Functions

    The is a reference to wildcards in the SQABasic Reference section in Help within the Robot product. Just search for wildcard and you should get the article you are looking for.

  3. #3
    Senior Member
    Join Date
    Mar 2003
    Location
    Austin, TX, USA
    Posts
    1,489
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Using Wildcards in Scripts & Functions

    Search in the SQABasic Reference manual pdf for "wildcard". There's a chapter on wildcards. If the information provided there isn't sufficient to answer your question, post the code here and we'll try to correct it for you. Wildcards aren't supported in all cases and the manual isn't clear if they are or aren't for HTMLLink.

  4. #4
    Member
    Join Date
    Feb 2005
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Using Wildcards in Scripts & Functions

    I reviewed the sqabasic reference manual chapter on wildcards, however, it appears that there is no reference for HTMLLink, etc.

    Here's the code, and I need to be able to use a wildcard in the "HTMLLink Click" statement. I've tried using the "*" character but it doesn't find it/work. Thanks in advance for your help!

    Window SetContext, "WindowTag=Instance1", ""
    Browser NewPage,"HTMLTitle=Microsoft Internet Explorer",""
    HTMLLink Click, "HTMLText=This is my Automation Test - Th...;VisualText=This is my Automation Test - Th...", ""
    'selects a protocol from the list

    If sqaFindObject("HTMLText=This is my Automation Test - Th...;VisualText=This is my Automation Test - Th...") = sqaSuccess Then
    Result = sqaPass
    sqaConsoleWrite msgtext
    Else
    Result = sqaFail
    On Error GoTo debugger
    End If

  5. #5
    Senior Member
    Join Date
    Mar 2003
    Location
    Austin, TX, USA
    Posts
    1,489
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Using Wildcards in Scripts & Functions

    Please include your code that didn't work and possibly we can point out where the error is.

    [ 03-01-2005, 07:54 AM: Message edited by: cyblue ]

  6. #6
    Member
    Join Date
    Feb 2005
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Using Wildcards in Scripts & Functions

    Note: "myObject" is already defined in the GUIMap as:
    Const myObject="This is my Automation Test - Th...;VisualText=This is my Automation Test - Th..."

    Window SetContext, "WindowTag=Instance1", ""
    Browser NewPage,"HTMLTitle=Microsoft Internet Explorer",""
    HTMLLink Click, "myObject, ""
    'selects a protocol from the list

    If sqaFindObject("myObject") = sqaSuccess Then
    Result = sqaPass
    sqaConsoleWrite msgtext
    Else
    Result = sqaFail
    On Error GoTo debugger
    End If

  7. #7
    Senior Member
    Join Date
    Mar 2003
    Location
    Austin, TX, USA
    Posts
    1,489
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Using Wildcards in Scripts & Functions

    Don't put quotes around your variables. Quotes are only used to enclose a string literal. "WindowTag=Instance1" is a string literal that should be in quotes, myObject is not.

    [ 03-03-2005, 09:33 AM: Message edited by: cyblue ]

  8. #8
    Member
    Join Date
    Feb 2005
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Using Wildcards in Scripts & Functions

    Thanks, yes, without the quotes it worked. However, I have quotes around 1 of them & it's still working, so I'm not sure what's going on.

  9. #9
    Member
    Join Date
    Feb 2005
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Using Wildcards in Scripts & Functions

    oops, no the quotes are not around the one that is working, sorry.

 

 

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.34%
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 11:37 AM.

Copyright BetaSoft Inc.