cannot click on select items for calendar widgets

Fixed, not yet flighted Issue #7200509

Details

Author
Joshua G.
Created
Apr 13, 2016
Privacy
This issue is public.
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

Trying to click an option for a select drop down for a calendar widget. Webdriver can find element, but cannot click it. Html is like following:
<div class="ui-datepicker">
<div class="ui-datepicker-header>
<div class="ui-datepicker-title">
<select class="UI-datepicker-year" data-event="change" data-handler="selectYear">
<option>1958</option>
<option>1959</option>
<option>1960</option>
<option>1961</option>
…etc…
</select>
</div>
</div>
The java code is something like this:
WebElement calendar = getElement().findElement(By.className(“ui-datepicker-year”));
WebElement yearItem = calendar.findElement(By.xpath(“option[@value=’” + iYear + "’]"));
yearItem.click()
The web element is found by the driver, but the test fails when it tries to click. Works on other browsers.
Tested in Windows 10 Enterprise Insider Preview Build 14316, with Insider Webdriver 14316
Stacktrace:
Capabilities [{platform=ANY, javascriptEnabled=true, acceptSslCerts=true, browserVersion=37.14316.1000.0, browserName=MicrosoftEdge, locationContextEnabled=true, takesElementScreenshot=true, webdriver.remote.sessionid=51e0dc18-72df-4ea3-94f8-c3d481f2eef5, pageLoadStrategy=normal, platformVersion=10, cssSelectorsEnabled=true, platformName=windows, webStorageEnabled=true, applicationCacheEnabled=true, takesScreenshot=true}]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:327)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:85)

Attachments

1 attachment

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Leo L.”

    Changed Assigned To to “Mara P.”

    Changed Assigned To from “Mara P.” to “Clay M.”

    Changed Status to “Confirmed”

    Changed Assigned To from “Clay M.” to “Ben B.”

    Changed Title from “Web driver cannot click on select items for calendar widgets” to “cannot click on select items for calendar widgets”

    Changed Assigned To from “Ben B.” to “Stephen M.”

    Changed Status from “Confirmed” to “Fixed, not yet flighted”

  • Hi Joshua,

    Could you give me the build number that this issue is fixed?

    Thanks,
    Truong

  • Hi Joshua,

    I wonder if you could tell me know what is the build number that it is fixed.

    Thanks,
    Truong

  • Hi Edge team,

    This issue also occurs on Windows Insider 14372, WebDriver 14366.

    Please re-check again

    Thanks,
    Truong

  • Hello,

    Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge 14393 and is available in our latest public stable build.

    Best Wishes,
    The MS Edge Team

You need to sign in to your Microsoft account to add a comment.

Sign in