Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Navigate to about:blank to reset page instead of empty file
closes #1035 closes #1214 closes #1203 closes #1198 closes #1215 Since it does not work with remote drivers, and somehow screws up on Windows.
- Loading branch information
Showing
4 changed files
with
3 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,9 +97,7 @@ def reset! | |
# to about:blank, so we rescue this error and do nothing | ||
# instead. | ||
end | ||
uri = URI(Capybara::EMPTY_HTML_FILE_PATH) | ||
uri.scheme = "file" | ||
@browser.navigate.to(uri.to_s) | ||
@browser.navigate.to("about:blank") | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jnicklas
Author
Collaborator
|
||
end | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
With ChromeDriver 2.9 on OS X 10.9.1, elements on pages are unable to receive focus after the browser navigates to about:blank.