SC
Size: a a a
SC
Y
SR
TS
SR
Selenide.executeJavaScript("(function(element) {element.value = 'asdcasdcd'; element.dispatchEvent(new Event('change', {bubble: true})) })(arguments[0]);", $(byText("Label text")).closest("div").$("input"));
Вот так прокатывает КИ
AV
Y
SR
Selenide.executeJavaScript("(function(element) {element.value = 'asdcasdcd'; element.dispatchEvent(new Event('change', {bubble: true})) })(arguments[0]);", $(byText("Label text")).closest("div").$("input"));
Вот так прокатывает SR
V
V
V
Using soft asserts, but without @SoftAsserts annotationV
@SoftAsserts а где это прописывать?AS
com.codeborne.selenide.junit5.SoftAssertsExtensionV
com.codeborne.selenide.junit5.SoftAssertsExtensionUsing soft asserts, but without @SoftAsserts annotation
java.lang.IllegalStateException: Using soft asserts, but without @SoftAsserts annotation
at com.codeborne.selenide.logevents.ErrorsCollector.validateAssertionMode(ErrorsCollector.java:54)
at com.codeborne.selenide.impl.SelenideElementProxy.invoke(SelenideElementProxy.java:59)
at com.sun.proxy.$Proxy24.setValue(Unknown Source)
at com.Login.login(Login.java:25)
at com.TestBase.setUp(TestBase.java:32)
AS
Configuration.assertionMode=SOFTV
Configuration.assertionMode=SOFT@ExtendWith({SoftAssertsExtension.class})
public class TestBase {
@Step
@BeforeAll
static void setUp() {
Configuration.browser = IOSDriverProvider.class.getName();
Configuration.startMaximized = false;
Configuration.browserSize = null;
Configuration.assertionMode = SOFT;
SelenideLogger.addListener("allure", new AllureSelenide()); // allure
open();
new Login().login();
}V
AS
@BeforeAll методе, а в нестатическом @BeforeEach методе.