Commit ef3a99a6 authored by Artur Khachatryan's avatar Artur Khachatryan Committed by Commit Bot

[ChromeDriver] Fix testSendTextToAlert

This CL is a fix of the bug 2164.

Chrome no longer allows navigate to the data URL we use in our tests as a startup page.
We change in this test to open an empty page.

Bug: chromedriver:2164
Change-Id: I922ee17e68086d631143e81fce794df99ed3840d
Reviewed-on: https://chromium-review.googlesource.com/823256Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Commit-Queue: Artur Khachatryan <khachatryan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523620}
parent 76c7e1e4
......@@ -87,8 +87,6 @@ _VERSION_SPECIFIC_FILTER['HEAD'] = [
'MobileEmulationCapabilityTest.testDeviceName',
'MobileEmulationCapabilityTest.testNetworkConnectionTypeIsAppliedToAllTabs',
'MobileEmulationCapabilityTest.testNetworkConnectionTypeIsAppliedToAllTabsImmediately',
# https://bugs.chromium.org/p/chromedriver/issues/detail?id=2164
'ChromeDriverTest.testSendTextToAlert',
]
_VERSION_SPECIFIC_FILTER['64'] = [
......@@ -200,8 +198,6 @@ _ANDROID_NEGATIVE_FILTER['chromium'] = (
'ChromeDriverTest.testHoverOverElement',
# https://bugs.chromium.org/p/chromedriver/issues/detail?id=1478
'ChromeDriverTest.testShouldHandleNewWindowLoadingProperly',
# https://bugs.chromium.org/p/chromedriver/issues/detail?id=2164
'ChromeDriverTest.testSendTextToAlert',
]
)
_ANDROID_NEGATIVE_FILTER['chromedriver_webview_shell'] = (
......@@ -877,6 +873,7 @@ class ChromeDriverTest(ChromeDriverBaseTestWithWebServer):
self._driver.ExecuteScript('return window.confirmed'))
def testSendTextToAlert(self):
self._driver.Load(self.GetHttpUrlForFile('/chromedriver/empty.html'))
self._driver.ExecuteScript('prompt = window.prompt()')
self.assertTrue(self._driver.IsAlertOpen())
self._driver.HandleAlert(True, 'TextToPrompt')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment