You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expressions like $("#myid").value("test") are about two times slower than their Selenium analog new Select(driver.findElement(By.id("test"))).selectByValue("N")
I believe it is because all selectors are translated to By.cssSelector in NonEmptyNavigator.find without any optimizations by selector type.
The text was updated successfully, but these errors were encountered:
erdi
changed the title
$ function uses By.cssSelector even for simple selectors by id
Find elements with an id, class or name derived By selector where possible
Jul 6, 2015
I'm not sure that we should be getting into parsing css selectors as this is complex and best left to driver implementations. Given that, if you use a css selector ($("#myid")) a By.cssSelector() search will be performed.
The implementation has been changed to use an appropriate By selector when you use attributes for your search though - e.g. $(id: "myId"), $(name: "user"), $(class: "myClass") will not not perform a By.cssSelector() search anymore.
Originally created by SergeyA.
Expressions like
$("#myid").value("test")
are about two times slower than their Selenium analognew Select(driver.findElement(By.id("test"))).selectByValue("N")
I believe it is because all selectors are translated to By.cssSelector in NonEmptyNavigator.find without any optimizations by selector type.
The text was updated successfully, but these errors were encountered: