SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jul 2001
    Location
    santa clara
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to make same script run on diff. browsers

    I started writng the silk scripts. I capture the window declarations (.inc file) and write the .t file. My .t file runs successfully on IE as I captured the declarations from IE.

    Butnow to make the same test case run on Netscape it does not work as Netscape recognizes the identifiers differently.


    My Include file
    -----------------

    [-] window BrowserChild MyWebsite
    [+] HtmlImage Join
    [+] multitag "Be Smarter, Feel Healthier. Join Today - Go!"
    [ ] "#12"
    [ ] "$http:??images.test.webmd.net?mywebmd?images?misc ?JoinToday.gif"
    -------------------------------------

    The .t file for this I would write is

    MyWebsite.Join.Click()


    and this worked fine on IE5.0

    Now can you give me the examples based on this how a common file of .inc can be written and common .t file can be written for running across different version of different browsers (netscape and IE)

    Please reply in detail.

    I tried to change the identifier in the include file and it worked for IE but I am having problems with Netscape.


    It would be a lot of help if anyone can explain indetail how to handle this.


    Thanks in advance,
    Madhuraus

    [This message has been edited by madhuraus (edited 07-31-2001).]

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make same script run on diff. browsers

    If the same objects have different tags, you can use the browser tag specifiers to change the object for IE and Netscrape.

    For example

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  3. #3
    Moderator
    Join Date
    May 2001
    Location
    SanJose,CA,USA
    Posts
    363
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to make same script run on diff. browsers

    //Window Use

    [-] window BrowserChild MyToica
    [ ] tag "^?my?"

    [ ] !netscape4 tag "Toica: My Toica-New"
    [ ] netscape4 tag "Toica: My Toica"

    [ ] parent Browser


    //Object Use
    [-] HtmlTextField FirstName
    [ ] netscape4 tag "[TextField]First Name:"
    [ ] !netscape4 tag "$ufn"


    Using the above you can run the same script in Different Brow.




    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 07:20 PM.

Copyright BetaSoft Inc.