Snehal Bhosle
Snehal Bhosle

Reputation: 31

Getting java.lang.UnsupportedOperationException: getDomAttribute for Select in Selenium 4

I am getting 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)

Upvotes: 2

Views: 554

Answers (1)

undetected Selenium
undetected Selenium

Reputation: 193058

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:

Upvotes: 0

Related Questions