-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlfabankTest.java
More file actions
27 lines (21 loc) · 903 Bytes
/
AlfabankTest.java
File metadata and controls
27 lines (21 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package tests;
import org.junit.jupiter.api.Test;
import static com.codeborne.selenide.Condition.text;
import static com.codeborne.selenide.Selenide.*;
public class AlfabankTest {
@Test
void TestAlfaDeposit(){
open("https://alfabank.ru/make-money/");
$("h1").shouldHave(text("Накопительные продукты"));
$x("//*[text()='Депозиты']/ancestor::button").click();
$("[data-widget-name=\"Button\"]").shouldHave(text("Архивные счета и депозиты")).scrollTo().click();
$x("//span[text()='Депозиты']").click();
$$("[data-widget-name=\"CatalogCard\"]").shouldHaveSize(5);
}
@Test
void AlfaInsurance(){
open("https://alfabank.ru/make-money/");
$("[data-test-id=\"tabs-list\"]").scrollTo().$("button").sibling(0).click();;
System.out.println("Hello");
}
}