@groovy.transform.Trait @groovy.transform.CompileStatic @groovy.transform.SelfType(value: ContainerGebSpec) trait ContainerSupport extends java.lang.Object implements DownloadSupport
Features for supporting Geb tests running in a container.
| Type | Name and description |
|---|---|
static BrowserWebDriverContainer |
containerGet access to container running the web-driver, for convenience to execInContainer, copyFileToContainer etc. |
static DownloadSupport |
downloadSupport |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.io.File |
createFileInputSource(java.lang.String hostPath, java.lang.String containerPath)Copies a file from the host to the container for assignment to a Geb FileInput module. |
|
static void |
setContainer(BrowserWebDriverContainer container) |
|
static void |
setDownloadSupport(DownloadSupport downloadSupport)Sets the DownloadSupport instance to use for file downloads. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Get access to container running the web-driver, for convenience to execInContainer, copyFileToContainer etc.
Copies a file from the host to the container for assignment to a Geb FileInput module. This method is useful when you need to upload a file to a form in a Geb test and will work cross-platform.
hostPath - relative path to the file on the hostcontainerPath - absolute path to where to put the file in the container Sets the DownloadSupport instance to use for file downloads.
This allows for setting a custom implementation of DownloadSupport
when downloading from a container.
downloadSupport - the DownloadSupport instance to use