File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
lib/selenium/webdriver/remote
spec/integration/selenium/webdriver Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,9 @@ def getTitle
208
208
end
209
209
210
210
def getPageSource
211
- execute :getPageSource
211
+ executeScript ( "var source = document.documentElement.outerHTML;" +
212
+ "if (!source) { source = new XMLSerializer().serializeToString(document); }" +
213
+ "return source;" )
212
214
end
213
215
214
216
def getVisible
Original file line number Diff line number Diff line change 25
25
expect ( driver . title ) . to eq ( "XHTML Test Page" )
26
26
end
27
27
28
- # Marionette BUG - AutomatedTester: "I need to add pagesource back and add it to the spec"
29
- not_compliant_on :browser => :marionette do
30
- it "should get the page source" do
31
- driver . navigate . to url_for ( "xhtmlTest.html" )
32
- expect ( driver . page_source ) . to match ( %r[<title>XHTML Test Page</title>]i )
33
- end
28
+ it "should get the page source" do
29
+ driver . navigate . to url_for ( "xhtmlTest.html" )
30
+ expect ( driver . page_source ) . to match ( %r[<title>XHTML Test Page</title>]i )
34
31
end
35
32
36
33
not_compliant_on :browser => :safari do
You can’t perform that action at this time.
0 commit comments