Class SeleniumSteps
- java.lang.Object
-
- de.telekom.test.bddwebapp.api.steps.ApiSteps
-
- de.telekom.test.bddwebapp.frontend.steps.SeleniumSteps
-
- All Implemented Interfaces:
RestAssuredSteps
public abstract class SeleniumSteps extends ApiSteps
Abstract steps class for selenium test.- Author:
- Daniel Keiss <daniel.keiss@telekom.de>
Copyright (c) 2019 Daniel Keiss, Deutsche Telekom AG This file is distributed under the conditions of the Apache License, Version 2.0. For details see the file license on the toplevel.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCURRENT_PAGEprotected InteractionParameterConverterinteractionParameterConverterstatic StringQUERY_PARAMSprotected StoryInteractionstoryInteractionprotected WebDriverWrapperwebDriverWrapper-
Fields inherited from class de.telekom.test.bddwebapp.api.steps.ApiSteps
scenarioInteraction
-
Fields inherited from interface de.telekom.test.bddwebapp.api.steps.RestAssuredSteps
REQUEST_INTERACTION_KEY, RESPONSE_INTERACTION_KEY
-
-
Constructor Summary
Constructors Constructor Description SeleniumSteps()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T extends Page>
TcreateExpectedPage(Class<T> expectedPage)protected <T extends Page>
TgetCurrentPage()protected <T> Map<String,T>getMapFromStoryInteraction()protected StringgetUrlWithHost(String hostIncludingPort, String path)protected StringgetUrlWithHost(String hostIncludingPort, String contextPath, String path)protected StringgetUrlWithHost(String hostIncludingPort, String contextPath, String path, Map<String,String> queryParams)protected Map<String,String>mapQueryParam()protected voidopen(String url)-
Methods inherited from class de.telekom.test.bddwebapp.api.steps.ApiSteps
clearRequest, recallRequest, recallResponse, rememberRequest
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.telekom.test.bddwebapp.api.steps.RestAssuredSteps
baseUri, createRequest, createRequestWithBaseUriAndProxy, createRequestWithJsonConfig, determineStandardPortForScheme, jsonConfig, proxy, proxy, recallResponseAsMap
-
-
-
-
Field Detail
-
CURRENT_PAGE
public static final String CURRENT_PAGE
- See Also:
- Constant Field Values
-
QUERY_PARAMS
public static final String QUERY_PARAMS
- See Also:
- Constant Field Values
-
webDriverWrapper
@Autowired protected WebDriverWrapper webDriverWrapper
-
storyInteraction
@Autowired protected StoryInteraction storyInteraction
-
interactionParameterConverter
@Autowired protected InteractionParameterConverter interactionParameterConverter
-
-
Method Detail
-
getCurrentPage
protected <T extends Page> T getCurrentPage()
-
getUrlWithHost
protected String getUrlWithHost(String hostIncludingPort, String contextPath, String path)
-
getUrlWithHost
protected String getUrlWithHost(String hostIncludingPort, String contextPath, String path, Map<String,String> queryParams)
-
open
protected void open(String url)
-
-