mirror of
https://github.com/valitydev/beholder.git
synced 2024-11-06 00:35:19 +00:00
Fix capabilities (#12)
This commit is contained in:
parent
c5c1a8b1ad
commit
dc33dd9bb5
@ -35,7 +35,8 @@ public class SeleniumConfig {
|
||||
URL lambdaTestUrl = buildLambdaTestUrl(seleniumProperties.getLambdaTest());
|
||||
String formUrl = paymentsProperties.getFormUrl();
|
||||
Long formTimeoutSec = paymentsProperties.getFormTimeoutSec();
|
||||
DesiredCapabilities desiredCapabilities = SeleniumUtil.getLambdaTestCapabilities();
|
||||
DesiredCapabilities desiredCapabilities =
|
||||
SeleniumUtil.getLambdaTestCapabilities(seleniumProperties.getLambdaTest());
|
||||
return new SeleniumService(lambdaTestUrl, formUrl, formTimeoutSec, desiredCapabilities, converter);
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
package dev.vality.beholder.util;
|
||||
|
||||
import dev.vality.beholder.config.properties.SeleniumProperties;
|
||||
import lombok.experimental.UtilityClass;
|
||||
import org.openqa.selenium.logging.LogType;
|
||||
import org.openqa.selenium.logging.LoggingPreferences;
|
||||
@ -29,12 +30,14 @@ public class SeleniumUtil {
|
||||
return capabilities;
|
||||
}
|
||||
|
||||
public static DesiredCapabilities getLambdaTestCapabilities() {
|
||||
public static DesiredCapabilities getLambdaTestCapabilities(SeleniumProperties.LambdaTestProperties lambdaTest) {
|
||||
var capabilities = getCommonCapabilities();
|
||||
capabilities.setCapability("network", false);
|
||||
capabilities.setCapability("visual", false);
|
||||
capabilities.setCapability("video", false);
|
||||
capabilities.setCapability("console", false);
|
||||
capabilities.setCapability("user", lambdaTest.getUser());
|
||||
capabilities.setCapability("accessKey", lambdaTest.getToken());
|
||||
return capabilities;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user