Need help on how to select dynamic drop-down

I am facing a problem while selecting hidden drop down menu…

Option Email in xpath was not found neither by visible Text nor by a value…

My html element doesn’t have value tag attribute.
Also visible Text is Email. So I am entering but it is working.

Any help appreciated.
Thanks :blush:

@Vish131 How do you select an option in this dropdown menu manual when it is hidden?

Have you tried the codeceptjs selectOption function?

If this will not help, maybe you can share some HTML code or URL to the page you test, so that we can see how the drop down menu is implemented. Thanks

Thanks @christian_wolf , It worked with SelectOption and there are no issues as of now…

Also modified xpath on more granular level.
Thanks for the help bud.

That’s great!


1 Like