SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    One script can execute in IE and Netscape?

    Hi,
    Is it possible, one silk test script can execute in Internet Explorer and Netscape...? If yer, we have to do and extra coding...?


    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  2. #2
    Senior Member
    Join Date
    Nov 2001
    Posts
    375
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: One script can execute in IE and Netscape?



    Oh yes u sure have to handle this case carefully!

    Your declarations will change for netscape and IE - try the windows identifier on the same objects in NS and IE ...and they will be different.

    But there are some cool ways in Silktest to handle it!

    One way is to capture bothe the declarations - paste them in ur frame file. And specify the tag identifiers for netscape and explorer seperately.

    Besides u could also use a crude way of using an if else loop
    for eg:

    if window.object.netscapebutton.exists()
    window.object.netscapebutton.click()
    else
    window.object.IEbutton.click()

    Best of luck!
    Aatish

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

  3. #3
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: One script can execute in IE and Netscape?

    Hi Aatish,
    Thanks for the reply. I'm trying to implement in ur way..


    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

  4. #4
    Junior Member
    Join Date
    Nov 2002
    Location
    Minsk, Belarus
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: One script can execute in IE and Netscape?

    In addition, if you alredy have IE scripts, you can redefine standard window classes for NN, for expample like this:
    winclass DialogBox : DialogBox
    winclass DialogBox : MainWin
    ...(sorry for bad samples, I haven't NN on my machie right now) and by commenting one of this strings you can switch between browsers.

    ------------------
    Kosher regards and so on.
    Schizoid
    Kosher regards and so on.
    Schizoid

  5. #5
    SQA Knight
    Join Date
    Sep 2001
    Location
    Bangalore,India
    Posts
    2,549
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: One script can execute in IE and Netscape?

    Hi schizoid,
    If you have sample code, pls send to tmpalaniselvam@yahoo.com It will be great help for me..

    ------------------
    Thanks & Regards,
    Palani.
    Thanks & Regards,
    Palani.
    http://tips-testing.blogspot.com/index.html
    Quote: Donít hesitate to initiate!

 

 

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 02:25 AM.

Copyright BetaSoft Inc.