File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
dotnet/src/webdriver/Remote Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -225,19 +225,8 @@ public string PageSource
225
225
get
226
226
{
227
227
string pageSource = string . Empty ;
228
- if ( this . IsSpecificationCompliant )
229
- {
230
- string script = "var source = document.documentElement.outerHTML; \n "
231
- + "if (!source) { source = new XMLSerializer().serializeToString(document); }\n "
232
- + "return source;" ;
233
- pageSource = this . ExecuteScript ( script ) . ToString ( ) ;
234
- }
235
- else
236
- {
237
- Response commandResponse = this . Execute ( DriverCommand . GetPageSource , null ) ;
238
- pageSource = commandResponse . Value . ToString ( ) ;
239
- }
240
-
228
+ Response commandResponse = this . Execute ( DriverCommand . GetPageSource , null ) ;
229
+ pageSource = commandResponse . Value . ToString ( ) ;
241
230
return pageSource ;
242
231
}
243
232
}
You can’t perform that action at this time.
0 commit comments