balin / com.github.epadronu.balin.config / ConfigurationSetupBuilder

ConfigurationSetupBuilder

open class ConfigurationSetupBuilder

Defines the builder used in the configuration DSL that can be interacted with via the com.github.epadronu.balin.core.Browser.configure method.

val desiredConfigurationSetup = Configuration(false, testFactory)

Browser.configure {
    autoQuit = desiredConfigurationSetup.autoQuit

    driverFactory = desiredConfigurationSetup.driverFactory
}

Assert.assertEquals(Browser.desiredConfiguration, desiredConfigurationSetup)

See Also

ConfigurationSetup

Constructors

<init>

ConfigurationSetupBuilder()

Defines the builder used in the configuration DSL that can be interacted with via the com.github.epadronu.balin.core.Browser.configure method.

Properties

autoQuit

var autoQuit: Boolean

control whether the driver quits at the end of com.github.epadronu.balin.core.Browser.drive.

driverFactory

var driverFactory: () -> WebDriver

the factory that will create the driver to be used when invoking com.github.epadronu.balin.core.Browser.drive.

waitForSleepTimeInMilliseconds

var waitForSleepTimeInMilliseconds: Long

control the amount of time between attempts when using com.github.epadronu.balin.core.WaitingSupport.waitFor.

waitForTimeOutTimeInSeconds

var waitForTimeOutTimeInSeconds: Long

control the total amount of time to wait for a condition evaluated by com.github.epadronu.balin.core.WaitingSupport.waitFor to hold.

Functions

build

open fun build(): ConfigurationSetup

Creates a new configuration setup.

Inheritors

ConfigurationBuilder

class ConfigurationBuilder : ConfigurationSetupBuilder

Defines the builder used in the configuration DSL that can be interacted with via the com.github.epadronu.balin.core.Browser.configure method.