I seem to be facing a challenge with a dropdown list while trying to select the birth month.
Despite my experience working on other websites, I have been unable to resolve this issue.
I have attempted:
Clicking using different locators. Using Action class for hovering and clicking. Trying to use JavaScript to select the month.
An interesting observation is that while I am able to extract the text of the WebElement, I am unable to click on it.
The URL of the application is: a link!
This issue is encountered specifically when creating an account on Google.
https://i.sstatic.net/ygYlE.png
I was attempting to choose any month from the dropdown list.
I received a TimeOutException when waiting for the box to display the desired month.
Other than that, no errors are reported. The script passes without making the selection.
While I acknowledge this may be a simple question, I would greatly appreciate any assistance in resolving it.
Thank you in advance.
<span id="BirthMonth" class=" form-error" aria-invalid="true">
<div class="goog-inline-block goog-flat-menu-button jfk-select" role="listbox" style="-moz-user-select: none;" aria-expanded="false" tabindex="0" aria-haspopup="true" aria-activedescendant=":0" title="Birthday">
<div class="goog-menu goog-menu-vertical" style="-moz-user-select: none; visibility: visible; left: 0px; top: -82.2333px; display: none;" role="listbox" aria-haspopup="true">
<div id=":1" class="goog-menuitem" role="option" style="-moz-user-select: none;">
<div id=":2" class="goog-menuitem" role="option" style="-moz-user-select: none;">
<div class="goog-menuitem-content">February</div>
</div>
<div id=":3" class="goog-menuitem" role="option" style="-moz-user-select: none;">
<div id=":4" class="goog-menuitem" role="option" style="-moz-user-select: none;">
<div id=":5" class="goog-menuitem" role="option" style="-moz-user-select: none;">
<div id=":6" class="goog-menuitem" role="option" style="-moz-user-select: none;">
<div id=":7" class="goog-menuitem" role="option" style="-moz-user-select: none;">
<div id=":8" class="goog-menuitem" role="option" style="-moz-user-select: none;">
<div id=":9" class="goog-menuitem" role="option" style="-moz-user-select: none;">
<div id=":a" class="goog-menuitem" role="option" style="-moz-user-select: none;">
<div id=":b" class="goog-menuitem" role="option" style="-moz-user-select: none;">
<div id=":c" class="goog-menuitem" role="option" style="-moz-user-select: none;">
</div>
<input id="HiddenBirthMonth" type="hidden" name="BirthMonth">
</span>