File tree Expand file tree Collapse file tree 1 file changed +18
-9
lines changed
Expand file tree Collapse file tree 1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change 11package tests ;
22
3- import com .codeborne .selenide .Condition ;
4- import com .codeborne .selenide .Selectors ;
5- import com .codeborne .selenide .Selenide ;
6- import com .codeborne .selenide .SelenideElement ;
3+
74import org .junit .jupiter .api .Test ;
85
9- public class AlfabankTest {
6+ import static com .codeborne .selenide .Condition .text ;
7+ import static com .codeborne .selenide .Selenide .*;
108
9+ public class AlfabankTest {
10+ @ Test
11+ void TestAlfaDeposit (){
12+ open ("https://alfabank.ru/make-money/" );
13+ $ ("h1" ).shouldHave (text ("Накопительные продукты" ));
14+ $x ("//*[text()='Депозиты']/ancestor::button" ).click ();
15+ $ ("[data-widget-name=\" Button\" ]" ).shouldHave (text ("Архивные счета и депозиты" )).scrollTo ().click ();
16+ $x ("//span[text()='Депозиты']" ).click ();
17+ $$ ("[data-widget-name=\" CatalogCard\" ]" ).shouldHaveSize (5 );
18+ }
1119
1220 @ Test
13- void TestAlfa (){
14- Selenide .open ("https://alfabank.ru/" );
15- Selenide .$ (Selectors .byText ("Вклады" )).click ();
16- Selenide .$ ("body" ).shouldHave (Condition .text ("Накопительные продукты" ));
21+ void AlfaInsurance (){
22+ open ("https://alfabank.ru/make-money/" );
23+ $ ("[data-test-id=\" tabs-list\" ]" ).scrollTo ().$ ("button" ).sibling (0 ).click ();;
24+ System .out .println ("Hello" );
25+
1726 }
1827}
You can’t perform that action at this time.
0 commit comments