SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

IDE version 1.0.8 now fails my tests that use CSS selectors #955

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 955

What steps will reproduce the problem?

1. Run any test using a similar command to css=td#login:contains('LOGIN')

What is the expected output? What do you see instead?

In the previous version this command in all my scripts worked, it should look for a
td element with an id of "login" that contains the test "LOGIN"
This step failed with the following error:

[error] Unexpected Exception: message -> window.Sizzle is not a function, fileName
-> chrome://selenium-ide/content/selenium/scripts/htmlutils.js, lineNumber -> 2203,
stack -> eval_css("td#login:contains('LOGIN')",[object XPCNativeWrapper])@chrome://selenium-ide/content/selenium/scripts/htmlutils.js:2203
("td#login:contains('LOGIN')",[object XPCNativeWrapper],[object XPCNativeWrapper])@chrome://selenium-ide/content/selenium/scripts/selenium-browserbot.js:1925
("css","td#login:contains('LOGIN')",[object XPCNativeWrapper],[object XPCNativeWrapper])@chrome://selenium-ide/content/selenium/scripts/selenium-browserbot.js:1247
("css","td#login:contains('LOGIN')",[object XPCNativeWrapper],[object XPCNativeWrapper])@chrome://selenium-ide/content/selenium/scripts/selenium-browserbot.js:1379
([object Object])@chrome://selenium-ide/content/selenium/scripts/selenium-browserbot.js:1406
("css=td#login:contains('LOGIN')","")@chrome://selenium-ide/content/selenium/scripts/selenium-api.js:1712
("css=td#login:contains('LOGIN')","")@chrome://selenium-ide/content/selenium/scripts/htmlutils.js:60
("css=td#login:contains('LOGIN')","")@chrome://selenium-ide/content/selenium/scripts/selenium-commandhandlers.js:171
("css=td#login:contains('LOGIN')","")@chrome://selenium-ide/content/selenium/scripts/selenium-commandhandlers.js:199
([object Object],[object Object])@chrome://selenium-ide/content/selenium/scripts/selenium-commandhandlers.js:349
()@chrome://selenium-ide/content/selenium/scripts/selenium-executionloop.js:112 (-7)@chrome://selenium-ide/content/selenium/scripts/selenium-executionloop.js:78
(-7)@chrome://selenium-ide/content/selenium/scripts/htmlutils.js:60 , name -> TypeError

What version of the product are you using? On what operating system?

Just updated to version 1.0.8 of IDE, Windows 7 32-bit, running FF 3.6.3

Please provide any additional information below.

The scripts worked fine before updating from version 1.0.7

Reported by jdungan on 2010-11-06 19:37:41

lukeis commented 8 years ago
I encountered this issue as well. Everything was fine before I left Firefox autoupdate
to 1.0.8.

Reported by nchelluri on 2010-11-07 04:57:14

lukeis commented 8 years ago
from the release notes:
NEW - CSS locator execution is handled through Sizzle

There's maybe something to adapt ?

Reported by erwan.deferrieres on 2010-11-07 18:25:56

lukeis commented 8 years ago
We had the same problem after upgrading to 1.0.8. Downgrading to 1.0.7 (http://release.seleniumhq.org/selenium-ide/1.0.7/)
fixed the issue.

Reported by rynusrein on 2010-11-08 09:48:27

lukeis commented 8 years ago
We are having the same problem on elements with css selectors i.e:

css=#yourid@href

Reported by adjones on 2010-11-08 10:14:53

lukeis commented 8 years ago
The problem is that the sizzle.js file is missing in new version of selenium (1.0.8).

To fix this, download sizzle.js file and add it to :
- selenium ide option
or
- your selenium extension directory : ...\Mozilla\Firefox\Profiles\...\extensions\{a6fd85ed-e919-4a43-a5af-8da18bda539f}\chrome\content\selenium\lib

Reported by nono0481 on 2010-11-08 16:50:54

lukeis commented 8 years ago
Fixed in trunk; until the next official release (soon!) you can get 1.0.9-SNAPSHOT with
the fix at http://xserve.openqa.org:8085/browse/SEIDE-DEF (choose the current build,
then artifacts).

-adam

Reported by adamgoucher on 2010-11-08 18:14:21

lukeis commented 8 years ago
Issue 962 has been merged into this issue.

Reported by adamgoucher on 2010-11-08 18:15:41

lukeis commented 8 years ago
Adam, thank you. Very timely response.

Reported by nchelluri on 2010-11-08 19:24:05

lukeis commented 8 years ago
Yes, thank you Adam.

Reported by jdungan on 2010-11-16 14:24:01

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:11:03