final class Config extends AnyRef
- Alphabetic
- By Inheritance
- Config
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val driverFactory: DriverFactory
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val keepAlive: Boolean
- val materialization: Materialization
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withDriverFactory(driverFactory: DriverFactory): Config
- def withKeepAlive(keepAlive: Boolean): Config
- def withMaterialization(materialization: Materialization): Config
- def withMaterializeInServer(contentDir: Path, webRoot: URL): Config
Materializes files in a static directory of a user configured server.
Materializes files in a static directory of a user configured server.
Version of
withMaterializeInServer
with stronger typing.- contentDir
Static content directory of the server. The files will be put here. Will get created if it doesn't exist.
- webRoot
URL making
contentDir
accessible thorugh the server. This must have a trailing slash to be interpreted as a directory.
- def withMaterializeInServer(contentDir: String, webRoot: String): Config
Materializes files in a static directory of a user configured server.
Materializes files in a static directory of a user configured server.
This can be used to bypass cross origin access policies.
- contentDir
Static content directory of the server. The files will be put here. Will get created if it doesn't exist.
- webRoot
URL making
contentDir
accessible thorugh the server. This must have a trailing slash to be interpreted as a directory.
The following will make the browser fetch files using the http:// schema instead of the file:// schema. The example assumes a local webserver is running and serving the ".tmp" directory at http://localhost:8080.
jsSettings( jsEnv := new SeleniumJSEnv( new org.openqa.selenium.firefox.FirefoxOptions(), SeleniumJSEnv.Config() .withMaterializeInServer(".tmp", "http://localhost:8080/") ) )
Example: - def withMaterializeInTemp: Config
Materializes purely virtual files into a temp directory.
Materializes purely virtual files into a temp directory.
Materialization is necessary so that virtual files can be referred to by name. If you do not know/care how your files are referred to, this is a good default choice. It is also the default of SeleniumJSEnv.Config.