In this video will see how to resolve selenium error – Exception in thread “main” org.openqa.selenium. UnexpectedTagNameException: Element should have been “select” but was “div”. I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com Code: Error screenshot: