Note that there are some explanatory texts on larger screens.

plurals
  1. PO'window.Sizzle is not a function' error when using CSS locator
    primarykey
    data
    text
    <p>Some months ago, I wanted to know how to click on a particular link in a page by its name, no the XPath:</p> <p><a href="https://stackoverflow.com/questions/3762376/selenium-ide-click-on-a-particular-item-by-name-not-the-xpath">Selenium IDE: Click on a particular item by name (not the XPath)</a></p> <p>AutomatedTester helped me providing these 2 solutions:</p> <pre><code>xpath=//span[text()='Keith Duggan: Sideline Cut'] </code></pre> <blockquote> <p>css=span:contains('Keith Duggan: Sideline Cut')</p> </blockquote> <p>Both of them worked fine, but for my Test Cases I've decided using the second approach (using CSS) because it's very easy. However, this code doesn't work anymore.</p> <p>In the last days, when trying to execute this TC I'm getting this error:</p> <pre><code>[error] Unexpected Exception: message -&gt; window.Sizzle is not a function, fileName -&gt; chrome://selenium-ide/content/selenium/scripts/htmlutils.js, lineNumber -&gt; 2203, stack -&gt; eval_css("span:contains('Keith Duggan: Sideline Cut')",[object XPCNativeWrapper])@chrome://selenium-ide/content/selenium/scripts/htmlutils.js:2203 ("span:contains('Keith Duggan: Sideline Cut')",[object XPCNativeWrapper],[object XPCNativeWrapper])@chrome://selenium-ide/content/selenium/scripts/selenium-browserbot.js:1925 ("css","span:contains('Keith Duggan: Sideline Cut')",[object XPCNativeWrapper],[object XPCNativeWrapper])@chrome://selenium-ide/content/selenium/scripts/selenium-browserbot.js:1247 ("css","span:contains('Keith Duggan: Sideline Cut')",[object XPCNativeWrapper],[object XPCNativeWrapper])@chrome://selenium-ide/content/selenium/scripts/selenium-browserbot.js:1379 ([object Object],[object XPCNativeWrapper])@chrome://selenium-ide/content/selenium/scripts/selenium-browserbot.js:1406 ("css=span:contains('Keith Duggan: Sideline Cut')")@chrome://selenium-ide/content/selenium/scripts/selenium-browserbot.js:1417 ("css=span:contains('Keith Duggan: Sideline Cut')","")@chrome://selenium-ide/content/selenium/scripts/selenium-api.js:230 ("css=span:contains('Keith Duggan: Sideline Cut')","")@chrome://selenium-ide/content/selenium/scripts/htmlutils.js:60 ([object Object],[object Object])@chrome://selenium-ide/content/selenium/scripts/selenium-commandhandlers.js:310 ()@chrome://selenium-ide/content/selenium/scripts/selenium-executionloop.js:112 (0)@chrome://selenium-ide/content/selenium/scripts/selenium-executionloop.js:78 (0)@chrome://selenium-ide/content/selenium/scripts/htmlutils.js:60 , name -&gt; TypeError </code></pre> <p>Any idea of what's happening here? Has Selenium introduced changes in the CSS sintaxis?</p> <p>Thanks for your help</p> <p>}Panacea{</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload