All Downloads are FREE. Search and download functionalities are using the official Maven repository.

selenium.actions.util.WebDriverExpressionSteps.kt Maven / Gradle / Ivy

The newest version!
package selenium.actions.util

import com.testerum_api.testerum_steps_api.annotations.steps.Param
import com.testerum_api.testerum_steps_api.annotations.steps.When
import com.testerum_api.testerum_steps_api.services.TesterumServiceLocator
import com.testerum_api.testerum_steps_api.test_context.script_executer.ScriptExecuter
import com.testerum_api.testerum_steps_api.test_context.test_vars.TestVariables
import org.openqa.selenium.JavascriptExecutor
import selenium_steps_support.service.module_di.SeleniumModuleServiceLocator
import selenium_steps_support.service.webdriver_manager.WebDriverManager

class WebDriverExpressionSteps {

    private val logger = TesterumServiceLocator.getTesterumLogger()

    private val variables: TestVariables = TesterumServiceLocator.getTestVariables()
    private val scriptExecuter: ScriptExecuter = TesterumServiceLocator.getScriptExecuter()
    private val webDriverManager: WebDriverManager = SeleniumModuleServiceLocator.bootstrapper.seleniumModuleFactory.webDriverManager

    @When(
            value = "I execute the WebDriver JS script <