-
Notifications
You must be signed in to change notification settings - Fork 306
Open
Labels
bugSomething that's not working as intendedSomething that's not working as intendeddomain-webdriverRelated to Intern's webdriver interface (formerly Leadfoot)Related to Intern's webdriver interface (formerly Leadfoot)effort-mediumThis may take a couple of daysThis may take a couple of dayspriority-highMost importantMost importantrepo-leadfootResolution applies to @theintern/leadfootResolution applies to @theintern/leadfoot
Description
Expected behavior
findAllByClassName()
should return a list of elements.
Current behavior
It returns an "Invalid argument" error:
InvalidArgument: [POST http://.../elements / {"using":"class name","value":"usernameInput"}] invalid argument: invalid locator
Possible solution
I thought this was a bug in Edgium's driver, but after reading https://www.w3.org/TR/webdriver/#find-element and then https://www.w3.org/TR/webdriver/#dfn-table-of-location-strategies, it seems that "class name" is not a valid strategy.
You could easily convert a call of getAllByClassName("foo")
to getAllByCssSelector(".foo")
.
Environment
Intern version: 4.5.0
Node version: 10.15.3
NPM version: 6.13.7
Browser version: MS Edge Chromium 80
pedroetb
Metadata
Metadata
Assignees
Labels
bugSomething that's not working as intendedSomething that's not working as intendeddomain-webdriverRelated to Intern's webdriver interface (formerly Leadfoot)Related to Intern's webdriver interface (formerly Leadfoot)effort-mediumThis may take a couple of daysThis may take a couple of dayspriority-highMost importantMost importantrepo-leadfootResolution applies to @theintern/leadfootResolution applies to @theintern/leadfoot