Skip to content

Commit

Permalink
rb - revert back to js for w3c page source
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Jun 19, 2016
1 parent e043b6a commit 05e5799
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rb/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ ruby_test(name = "remote-ie",
ruby_test(name = "remote-edge",
srcs = [
"spec/integration/selenium/webdriver/*_spec.rb",
"spec/integration/selenium/webdriver/ie/**/*_spec.rb",
"spec/integration/selenium/webdriver/edge/**/*_spec.rb",
"spec/integration/selenium/webdriver/remote/**/*_spec.rb"
],
include = ["rb/spec/integration", "build/rb/lib"],
Expand Down
4 changes: 3 additions & 1 deletion rb/lib/selenium/webdriver/remote/w3c_bridge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ def title
end

def page_source
execute :getPageSource
execute_script('var source = document.documentElement.outerHTML;' \
'if (!source) { source = new XMLSerializer().serializeToString(document); }' \
'return source;')
end

def switch_to_window(name)
Expand Down

0 comments on commit 05e5799

Please sign in to comment.