Class BrowserProxyGetStepSupplier
- java.lang.Object
-
- ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier<T,R,M,P,THIS>
-
- ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier.GetListStepSupplier<SeleniumStepContext,List<HttpTraffic>,HttpTraffic,BrowserProxyGetStepSupplier>
-
- ru.tinkoff.qa.neptune.selenium.functions.browser.proxy.BrowserProxyGetStepSupplier
-
- All Implemented Interfaces:
Cloneable,Supplier<Function<SeleniumStepContext,List<HttpTraffic>>>,StepParameterPojo
public class BrowserProxyGetStepSupplier extends SequentialGetStepSupplier.GetListStepSupplier<SeleniumStepContext,List<HttpTraffic>,HttpTraffic,BrowserProxyGetStepSupplier>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier
SequentialGetStepSupplier.DefaultGetParameterReader, SequentialGetStepSupplier.DefineCriteriaParameterName, SequentialGetStepSupplier.DefineFromParameterName, SequentialGetStepSupplier.DefineGetImperativeParameterName, SequentialGetStepSupplier.DefinePollingTimeParameterName, SequentialGetStepSupplier.DefineResultDescriptionParameterName, SequentialGetStepSupplier.DefineTimeOutParameterName, SequentialGetStepSupplier.GetArrayChainedStepSupplier<T,R,M,THIS extends SequentialGetStepSupplier.GetArrayChainedStepSupplier<T,R,M,THIS>>, SequentialGetStepSupplier.GetArrayStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetArrayStepSupplier<T,R,THIS>>, SequentialGetStepSupplier.GetListChainedStepSupplier<T,S extends Iterable<R>,M,R,THIS extends SequentialGetStepSupplier.GetListChainedStepSupplier<T,S,M,R,THIS>>, SequentialGetStepSupplier.GetListStepSupplier<T,S extends Iterable<R>,R,THIS extends SequentialGetStepSupplier.GetListStepSupplier<T,S,R,THIS>>, SequentialGetStepSupplier.GetObjectChainedStepSupplier<T,R,M,THIS extends SequentialGetStepSupplier.GetObjectChainedStepSupplier<T,R,M,THIS>>, SequentialGetStepSupplier.GetObjectFromArrayChainedStepSupplier<T,R,M,THIS extends SequentialGetStepSupplier.GetObjectFromArrayChainedStepSupplier<T,R,M,THIS>>, SequentialGetStepSupplier.GetObjectFromArrayStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetObjectFromArrayStepSupplier<T,R,THIS>>, SequentialGetStepSupplier.GetObjectFromIterableChainedStepSupplier<T,R,M,THIS extends SequentialGetStepSupplier.GetObjectFromIterableChainedStepSupplier<T,R,M,THIS>>, SequentialGetStepSupplier.GetObjectFromIterableStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetObjectFromIterableStepSupplier<T,R,THIS>>, SequentialGetStepSupplier.GetObjectStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetObjectStepSupplier<T,R,THIS>>, SequentialGetStepSupplier.GetSimpleStepSupplier<T,R,THIS extends SequentialGetStepSupplier.GetSimpleStepSupplier<T,R,THIS>>
-
-
Field Summary
-
Fields inherited from class ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier
toReport
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description BrowserProxyGetStepSupplierpollingInterval(Duration pollingTime)Sometimes it is necessary to wait until some result that may be considered valuable is returned.static BrowserProxyGetStepSupplierproxiedRequests()BrowserProxyGetStepSupplierrecordedRequestBody(String body)BrowserProxyGetStepSupplierrecordedRequestBodyMatches(String bodyExpression)BrowserProxyGetStepSupplierrecordedRequestHeader(String name, String value)BrowserProxyGetStepSupplierrecordedRequestHeaderMatches(String name, String valueExpression)BrowserProxyGetStepSupplierrecordedRequestMethod(io.netty.handler.codec.http.HttpMethod method)BrowserProxyGetStepSupplierrecordedRequestUrl(String url)BrowserProxyGetStepSupplierrecordedRequestUrlMatches(String urlExpression)BrowserProxyGetStepSupplierrecordedResponseBody(String body)BrowserProxyGetStepSupplierrecordedResponseBodyMatches(String bodyExpression)BrowserProxyGetStepSupplierrecordedResponseHeader(String name, String value)BrowserProxyGetStepSupplierrecordedResponseHeaderMatches(String name, String valueExpression)BrowserProxyGetStepSupplierrecordedResponseHttpVersion(HttpClient.Version version)BrowserProxyGetStepSupplierrecordedResponseStatusCode(int status)default THISreturnAfterIndex(int index)Sets lower list index (exclusively) to take items from the list of found/suitable elements.default THISreturnBeforeIndex(int index)Sets upper list index (exclusively) to take items from the list of found/suitable elements.default THISreturnIfEntireSize(ItemsCountCondition sizeCondition)Defines a size condition for entire list of found/suitable elements.default THISreturnItemsOfIndexes(Integer... indexes)Defines indexes of found items to be returned.default THISreturnListOfSize(int size)Sets count of items to take from the list of found/suitable elements.default THISreturnOnCondition(String description, Predicate<T> predicate)Defines a condition for entire set of found/suitable elements.default THISreturnOnCondition(Criteria<List<R>> condition)Defines a condition for list of found/suitable elements.default THISreturnOnConditionOnlyNot(Criteria<T>... condition)Defines a condition for entire set of found/suitable elements.default THISreturnOnConditionOnlyOne(Criteria<T>... condition)Defines a condition for entire set of found/suitable elements.default THISreturnOnConditionOr(Criteria<T>... condition)Defines a condition for entire set of found/suitable elements.BrowserProxyGetStepSuppliertimeOut(Duration timeOut)Sometimes it is necessary to wait until some result that may be considered valuable is returned.-
Methods inherited from class ru.tinkoff.qa.neptune.core.api.steps.SequentialGetStepSupplier
addIgnored, addIgnored, additionalParameters, eraseTimeOut, getCriteria, getDescription, getEndFunction, getFrom, getParameters, makeACopy, onFailure, onStart, onSuccess, preparePreFunction, setDescription, throwOnNoResult, toString, turnReportingOff
-
-
-
-
Method Detail
-
proxiedRequests
public static BrowserProxyGetStepSupplier proxiedRequests()
-
recordedRequestUrl
public BrowserProxyGetStepSupplier recordedRequestUrl(String url)
-
recordedRequestUrlMatches
public BrowserProxyGetStepSupplier recordedRequestUrlMatches(String urlExpression)
-
recordedRequestMethod
public BrowserProxyGetStepSupplier recordedRequestMethod(io.netty.handler.codec.http.HttpMethod method)
-
recordedResponseHttpVersion
public BrowserProxyGetStepSupplier recordedResponseHttpVersion(HttpClient.Version version)
-
recordedRequestHeader
public BrowserProxyGetStepSupplier recordedRequestHeader(String name, String value)
-
recordedRequestHeaderMatches
public BrowserProxyGetStepSupplier recordedRequestHeaderMatches(String name, String valueExpression)
-
recordedResponseHeader
public BrowserProxyGetStepSupplier recordedResponseHeader(String name, String value)
-
recordedResponseHeaderMatches
public BrowserProxyGetStepSupplier recordedResponseHeaderMatches(String name, String valueExpression)
-
recordedRequestBody
public BrowserProxyGetStepSupplier recordedRequestBody(String body)
-
recordedResponseBody
public BrowserProxyGetStepSupplier recordedResponseBody(String body)
-
recordedRequestBodyMatches
public BrowserProxyGetStepSupplier recordedRequestBodyMatches(String bodyExpression)
-
recordedResponseBodyMatches
public BrowserProxyGetStepSupplier recordedResponseBodyMatches(String bodyExpression)
-
recordedResponseStatusCode
public BrowserProxyGetStepSupplier recordedResponseStatusCode(int status)
-
timeOut
public BrowserProxyGetStepSupplier timeOut(Duration timeOut)
Description copied from class:SequentialGetStepSupplierSometimes it is necessary to wait until some result that may be considered valuable is returned. This method is for defining the waiting time.- Overrides:
timeOutin classSequentialGetStepSupplier<SeleniumStepContext,List<HttpTraffic>,SeleniumStepContext,HttpTraffic,BrowserProxyGetStepSupplier>- Parameters:
timeOut- is a time duration to get desired value- Returns:
- self-reference
-
pollingInterval
public BrowserProxyGetStepSupplier pollingInterval(Duration pollingTime)
Description copied from class:SequentialGetStepSupplierSometimes it is necessary to wait until some result that may be considered valuable is returned. It sets how often the function should be evaluated.- Overrides:
pollingIntervalin classSequentialGetStepSupplier<SeleniumStepContext,List<HttpTraffic>,SeleniumStepContext,HttpTraffic,BrowserProxyGetStepSupplier>- Parameters:
pollingTime- The timeout duration.- Returns:
- A self reference.
-
returnListOfSize
public default THIS returnListOfSize(int size)
Sets count of items to take from the list of found/suitable elements. Invocation of this method erases value set byreturnItemsOfIndexes(Integer...)- Parameters:
size- size of resulted list- Returns:
- self-reference
-
returnItemsOfIndexes
public default THIS returnItemsOfIndexes(Integer... indexes)
Defines indexes of found items to be returned. Invocation of this method erases value set byreturnListOfSize(int)andreturnBeforeIndex(int)/returnAfterIndex(int)- Parameters:
indexes- indexes of items to be returned- Returns:
- self-reference
-
returnBeforeIndex
public default THIS returnBeforeIndex(int index)
Sets upper list index (exclusively) to take items from the list of found/suitable elements. Invocation of this method replaces value set byreturnAfterIndex(int)and erases value set byreturnItemsOfIndexes(Integer...)- Parameters:
index- is exclusive value of the upper index- Returns:
- self-reference
-
returnAfterIndex
public default THIS returnAfterIndex(int index)
Sets lower list index (exclusively) to take items from the list of found/suitable elements. Invocation of this method replaces value set byreturnBeforeIndex(int)and erases value set byreturnItemsOfIndexes(Integer...)- Parameters:
index- is exclusive value of the lower index- Returns:
- self-reference
-
returnIfEntireSize
public default THIS returnIfEntireSize(ItemsCountCondition sizeCondition)
Defines a size condition for entire list of found/suitable elements.- Parameters:
sizeCondition- a size condition for entire list- Returns:
- self-reference
-
returnOnCondition
public default THIS returnOnCondition(Criteria<List<R>> condition)
Defines a condition for list of found/suitable elements.- Parameters:
condition- a condition for entire list- Returns:
- self-reference
-
returnOnCondition
public default THIS returnOnCondition(String description, Predicate<T> predicate)
Defines a condition for entire set of found/suitable elements.- Parameters:
description- describes the conditionpredicate- defines the condition- Returns:
- self-reference
-
returnOnConditionOr
public default THIS returnOnConditionOr(Criteria<T>... condition)
Defines a condition for entire set of found/suitable elements. Defined criteria will be transformed into OR-expression- Parameters:
condition- condition for entire set of items- Returns:
- self-reference
-
returnOnConditionOnlyOne
public default THIS returnOnConditionOnlyOne(Criteria<T>... condition)
Defines a condition for entire set of found/suitable elements. Defined criteria will be transformed into XOR-expression- Parameters:
condition- condition for entire set of items- Returns:
- self-reference
-
returnOnConditionOnlyNot
public default THIS returnOnConditionOnlyNot(Criteria<T>... condition)
Defines a condition for entire set of found/suitable elements. Defined criteria will be inverted- Parameters:
condition- condition for entire set of items- Returns:
- self-reference
-
-