SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Feb 2005
    Location
    Bellevue, WA
    Posts
    19
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Selenium IDE-same script runs different on 2 PC\'s

    I have the same Selenium script running on 2 PC's, call them PC A and PC B.

    Both PC's are Windows XP machines using Firefox 12.0, Selenium IDE 1.8.0.

    The script brings up the same URL and begins clicking on links.

    The script runs fine on PC A.

    On PC B, the script can't find some of the links and the click event had to be re-recorded.

    Here is what I see in the code (showing only part of the click line)

    PC A
    Command Target
    click @id='zz20_Menu1'

    PC B
    Command Target
    click @id='zz11_Menu1'

    I don't understand why the script fails. If I'm pulling up the same webpage on both PC's, why does Selenium see the same link differently?

    Any thoughts?

  2. #2
    Member
    Join Date
    Apr 2004
    Location
    California
    Posts
    292
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Selenium IDE-same script runs different on 2 PC\'s

    Looks like your application might be using a web framework which dynamically assign's id to web element. Based on your example below. PC A has the id as "ZZ20" where PC B has the id as "ZZ11".

    ===Your Example===
    PC A
    Command Target
    click @id='zz20_Menu1'

    PC B
    Command Target
    click @id='zz11_Menu1'
    ====================

    In selenium IDE you should have the option to use "absolute xPath" over id. See if that helps.

  3. #3
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Selenium IDE-same script runs different on 2 PC\'s

    Well, this could be a behavior of your application. Some application use a JS based framework for UI representation. JS Script created these id's dynamically on the request. And any change in the state of web page can generate different html ids.

    I don't believe that selenium is to blame here

 

 

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.11%
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:45 PM.

Copyright BetaSoft Inc.