1

I am etting java.lang.UnsupportedOperationException: getDomAttribute for Select in Selenium 4.. Does anyone know how to resolve this issue? my selenium version is 4.6.0. Tried multiple things but nothing worked..

java.lang.UnsupportedOperationException: getDomAttribute at org.openqa.selenium.WebElement.getDomAttribute(WebElement.java:131) at org.openqa.selenium.support.ui.Select.<init>(Select.java:54)

  • you'll probably need to call getWrappedElement() first as Select is a class object and not a direct webelement reference: https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/ui/Select.html – pcalkins Jul 28 '23 at 20:23

1 Answers1

0

This error message...

java.lang.UnsupportedOperationException: getDomAttribute
at org.openqa.selenium.WebElement.getDomAttribute(WebElement.java:131)
at org.openqa.selenium.support.ui.Select.<init>(Select.java:54)

...indicates a dependency conflict and it's almost always a dependency management issue.

getDomAttribute() is a new addition in .


Solution

Ensure that:


References

You can find a couple of relevant detailed discussion in:

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352