@groovy.transform.Trait @groovy.transform.CompileStatic @groovy.transform.SelfType(value: ContainerGebSpec) trait DriverDelegate extends java.lang.Object
Handles delegation to select methods of the driver instance for end user convenience.
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getPageSource() Get the source of the last loaded page. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Get the source of the last loaded page. If the page has been modified after loading (for example, by Javascript) there is no guarantee that the returned text is that of the modified page. Please consult the documentation of the particular driver being used to determine whether the returned text reflects the current state of the page or the text last sent by the web server. The page source returned is a representation of the underlying DOM: do not expect it to be formatted or escaped in the same way as the response sent from the web server. Think of it as an artist's impression.
See W3C WebDriver specification for more details.