Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selenium IDE garbles relative paths to test cases when saving a suite #1653

Closed
DanielSmedegaardBuus opened this issue Feb 17, 2016 · 3 comments
Labels
Z-ide Archived; see separate project

Comments

@DanielSmedegaardBuus
Copy link

Hello :)

I'm experiencing the issue described here.

When saving a suite in the IDE, if it contains test cases that reside in a parent or sibling folder, it'll save garbled relative paths that'll make the IDE throw an exception when you try to re-open the suite later.

Example:

The suite:
/Users/daniel/Projects/some-project/test/browser/suites/create-user/create-user.html

References the (shared) test case:
/Users/daniel/Projects/some-project/test/browser/suites/lib/log-in-as-admin.html

Expected test case href when saving (and required when opening) the suite:
<tr><td><a href="../lib/log-in-as-admin.html">log in as admin</a></td></tr>

Actual href when saving:
<tr><td><a href="../../../../../../../../../lib/log-in-as-admin.html">log in as admin</a></td></tr>

It looks like every folder in the path is simply replaced by two dots? Seems like an easy bug to fix :)

I can correct this manually, but it's a short-lived fix, because the next time I save the suite in the IDE, it'll re-garble the paths.

The work-around using absolute paths suggested by the blogger in the link referenced above is not viable here, as we are a number of people sharing these tests via git and creating and running them on different setups.

Selenium IDE 2.9.1 in Firefox 44.0.2 on Mac OS X 10.11.3

Cheers :)

@barancev barancev added the Z-ide Archived; see separate project label Mar 2, 2016
@andrewlorien
Copy link

This issue is more recent, but has had more discussion and is assigned : SeleniumHQ/selenium-google-code-issue-archive#1683

@peter-lyons-kehl
Copy link

peter-lyons-kehl commented Aug 23, 2016

A tricky issue, since it doesn't happen in common workflows. Here's how to replicate:

  1. Have an existing test suite, that has at least two test cases. If you are on Windows, have those test cases and the test suite on the same volume (drive). (Otherwise Selenium will use full paths, and the problem doesn't show up.)
  2. If you just created the test suite, restart Selenium IDE.
  3. Open that test suite. Do not click at any test case (in the list on the left). (This way only the first test case is loaded in the memory.)
  4. File > Save Test Suite As... in a different folder than it was already.

I've identified a fix. I will provide a pull request.

@barancev
Copy link
Member

Selenium IDE development has been discontinued. No more new features and no bug fixes. From Firefox 55 onwards, Selenium IDE will no longer work [1]. The last supported version is Firefox ESR 52.

Yes, we've started a project to develop a new tool that should replace Selenium IDE. Follow #4406 for the progress.

Sorry this issue has not beed properly and timely addressed, and thank you for submission!

[1] https://seleniumhq.wordpress.com/2017/08/09/firefox-55-and-selenium-ide/

@lock lock bot locked and limited conversation to collaborators Aug 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Z-ide Archived; see separate project
Projects
None yet
Development

No branches or pull requests

4 participants