This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testng; | |
import org.testng.IRetryAnalyzer; | |
import org.testng.ITestResult; | |
public class Retry implements IRetryAnalyzer { | |
private int attempt = 1; | |
private static final int MAX_RETRY = 5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomeFile { | |
private double getResult(String sValue) { | |
Double value1 = Double.valueOf(String.value0f(driver.findElement(By.css("#value1")).getText())); | |
Double value2 = Double.valueOf(String.value0f(driver.findElement(By.css(".value2")).getText())); | |
String operation = driver.findElement(By.id("opeartion")).getText(); | |
Double Dresult; | |
if (operation.equals("Сумма")) { | |
Dresult = value1 + value2; | |
} else if (operation.equals("Разница")) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomeFile { | |
private double getResult(String sValue) { | |
Double value1 = Double.valueOf(String.value0f(driver.findElements(By.css("#value1")).getText())); | |
Double value2 = Double.valueOf(String.value0f(driver.findElements(By.css(".value2")).getText())); | |
String operation = driver.findElement(By.id("opeartion")).getText(); | |
Double Dresult; | |
if (operation.equals("Сумма")) { | |
Dresult = value1 + value2; | |
} else if (operation.equals("Разница")) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pages; | |
import org.openqa.selenium.*; | |
import org.openqa.selenium.interactions.Actions; | |
import org.openqa.selenium.support.ui.ExpectedCondition; | |
import org.openqa.selenium.support.ui.WebDriverWait; | |
import javax.swing.*; | |
import java.time.Duration; | |
import java.util.Objects; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dto; | |
public class Account { | |
String accountName; | |
String phone; | |
String fax; | |
String rating; | |
public Account(String accountName, String phone, String fax, String rating) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pages; | |
import io.qameta.allure.Step; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
public class AccountsPage extends BasePage { | |
private String ACTION_BUTTON_PATTERN = "//div[@title='%s']"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package steps; | |
import dto.Account; | |
import io.qameta.allure.Step; | |
import org.openqa.selenium.WebDriver; | |
import pages.AccountsPage; | |
import pages.HomePage; | |
import pages.NewAccountModal; | |
public class AccountStep { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tests; | |
import dto.Account; | |
import io.qameta.allure.Description; | |
import org.testng.annotations.Test; | |
import tests.base.BaseTest; | |
import static dto.AccountFactory.getAccount; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wrappers; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.interactions.Actions; | |
import org.openqa.selenium.support.ui.ExpectedConditions; | |
import org.openqa.selenium.support.ui.WebDriverWait; | |
import java.time.Duration; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wrappers; | |
import org.openqa.selenium.By; | |
import org.openqa.selenium.JavascriptExecutor; | |
import org.openqa.selenium.WebDriver; | |
import org.openqa.selenium.interactions.Actions; | |
import org.openqa.selenium.support.ui.ExpectedConditions; | |
import org.openqa.selenium.support.ui.WebDriverWait; | |
import java.time.Duration; |
OlderNewer