Skip to content

Commit 358307a

Browse files
committed
Fix the ios-webview.js test
It was broken because the test WebView app automatically adds "http://" to the address bar when it is selected. The ios-webiew.js test tried to type "http://www.google.com" into the address bar, resulting in trying go to "http://http://www.google.com" which caused the test to fail. Fix: Type "www.google.com" into the address bar instead of "http://www.google.com"
1 parent 722b9dd commit 358307a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sample-code/examples/node/ios-webview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe("ios webview", function () {
4444
it("should get the url", function () {
4545
return driver
4646
.elementByXPath('//UIATextField[@value=\'Enter URL\']')
47-
.sendKeys('https://www.google.com')
47+
.sendKeys('www.google.com')
4848
.elementByName('Go').click()
4949
.elementByClassName('UIAWebView').click() // dismissing keyboard
5050
.context('WEBVIEW')

0 commit comments

Comments
 (0)