WIP: Zamaldinova #15
@ -108,43 +108,47 @@ public class FilterBy {
|
|||||||
return driver.findElement(By.cssSelector("#branding-layout > div.page-layout > div > div > div > div >" +
|
return driver.findElement(By.cssSelector("#branding-layout > div.page-layout > div > div > div > div >" +
|
||||||
" aside > section:nth-child(3) > div > form > label > input")).isDisplayed();
|
" aside > section:nth-child(3) > div > form > label > input")).isDisplayed();
|
||||||
}
|
}
|
||||||
public boolean AssertUseFilter() {
|
public boolean AssertUseFilterForNewsOfMyComand() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
return driver.findElement(By.cssSelector("#branding-layout > div.page-layout > div > div > div > div " +
|
return driver.findElement(By.cssSelector("#branding-layout > div.page-layout > div > div > div > div " +
|
||||||
"> aside > section:nth-child(3) > div > div > ul > li > a")).getText().indexOf(" Жеребьевка Евро-2020") >= 0;
|
"> aside > section:nth-child(3) > div > div > ul > li > a")).getText().indexOf("Жеребьевка Евро-2020. Россия сыграет с Бельгией, Шотландией, Кипром, Казахстаном и Сан-Марино") >= 0;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
public boolean AssertUseFilterForNewsFromUsers() {
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean AssertUseFilterForNewsFromUsers() {
|
||||||
try {
|
try {
|
||||||
return driver.findElement(By.cssSelector("#branding-layout > " +
|
|
||||||
"div.page-layout > div > div > div > div > aside > section:nth-child(16) > div >" +
|
return driver.findElement(By.cssSelector("#branding-layout > div.page-layout > div > div > div > div > aside > section:nth-child(16) > div > div.users-news__tabs.tabs_state_horizontal.tabs.tabs_animate.tabs_animate_horizontal-slide > div.tabs__body >" +
|
||||||
" div.users-news__tabs.tabs_state_horizontal.tabs.tabs_animate.tabs_animate_horizontal-slide >" +
|
" div.users-news__tabs-panel.users-news__top-panel.tabs__panel.tabs__panel_active " +
|
||||||
" div.tabs__body >" +
|
"> ul:nth-child(2) > li > a")).getText().indexOf("МЛБ. Определились все участники плей-офф") >= 0;
|
||||||
" div.users-news__tabs-panel.users-news__top-panel.tabs__panel.tabs__panel_active > " +
|
|
||||||
"ul:nth-child(4) > li")).getText().indexOf(" Зал славы бейсбола") >= 0;
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean AssertUseFilterForStatistics() {
|
public boolean AssertUseFilterForStatistics() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return driver.findElement(By.cssSelector("#branding-layout > div.page-layout > div > div > aside > section:nth-child(6) > div > div.gadget__tournament-data > div > div:nth-child(1) > div.accordion__body" +
|
|
||||||
" > table > tbody > tr:nth-child(2) > td:nth-child(2) > a")).getText().indexOf("Истанбул") >= 0;
|
return driver.findElement(By.cssSelector("#branding-layout > div.page-layout > div > div > aside > section:nth-child(6) > div > div.gadget__tournament-data > div > div:nth-child(1)" +
|
||||||
|
" >div.accordion__body > table > tbody > tr:nth-child(2) > td:nth-child(2) > a")).getText().indexOf("Истанбул") >= 0;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user