geckodriver icon indicating copy to clipboard operation
geckodriver copied to clipboard

locating with empty tag name should error

Open titusfortner opened this issue 3 years ago • 0 comments

System

  • Version: 0.31
  • Platform: macOS Big Sur
  • Firefox: 99.0.1 (64-bit
  • Selenium: Ruby 4.1.0

Testcase

Selenium Python, Ruby & JS have been converting tag name selectors to CSS selectors, which according to w3c is apparently not quite correct.

When locating by an empty tag name, Firefox returns element not found. I think Chrome is doing the correct thing by returning "invalid selector" error.

driver.find_element(tag_name: '')

titusfortner avatar Apr 14 '22 15:04 titusfortner