Skip to content

Commit

Permalink
facut niste mici modificari
Browse files Browse the repository at this point in the history
  • Loading branch information
Riverutz committed Aug 10, 2024
1 parent 57e5948 commit f9fa4a3
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 29 deletions.
2 changes: 0 additions & 2 deletions src/test/java/methods/ElementMethods.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
public class ElementMethods {
public WebDriver driver;

//METODE GENERALE PENTRU INTERACTIUNEA CU ELEMENTE

public void waitForElementVisible(WebElement element) {

WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(10));
Expand Down
3 changes: 0 additions & 3 deletions src/test/java/pages/AlertPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ public AlertPage(WebDriver driver) {

@FindBy(id = "alertButton")
private WebElement alertButtonOK;

@FindBy(id="confirmButton")
private WebElement alertConfirmButton;

@FindBy(id="promtButton")
private WebElement alertPromptButton;

@FindBy(id="timerAlertButton")
private WebElement alertWait;

Expand Down
2 changes: 0 additions & 2 deletions src/test/java/pages/FramePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ public FramePage(WebDriver driver) {
}
@FindBy(id = "sampleHeading")
private WebElement iframeTest;

@FindBy(id = "sampleHeading")
private WebElement iframeTestTwo;

@FindBy(xpath = "//span[text()='Nested Frames']")
private WebElement nestedFrames;

Expand Down
2 changes: 0 additions & 2 deletions src/test/java/pages/HomePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ public HomePage(WebDriver driver) {

@FindBy(xpath = "//h5[text()='Alerts, Frame & Windows']")
private WebElement alertMenu;

@FindBy(xpath = "//h5[text()='Forms']")
private WebElement formsMenu;

@FindBy(xpath = "//h5[text()='Elements']")
private WebElement elementsMenu;

Expand Down
1 change: 0 additions & 1 deletion src/test/java/pages/NestedFramePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public NestedFramePage(WebDriver driver) {

@FindBy(xpath = "//iframe[@srcdoc='<p>Child Iframe</p>']")
private WebElement childIFrame;

@FindBy(xpath = "//p")
private WebElement text;

Expand Down
18 changes: 0 additions & 18 deletions src/test/java/pages/PracticeFormPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,58 +17,40 @@ public PracticeFormPage(WebDriver driver) {

@FindBy(id = "firstName")
private WebElement firstName;

@FindBy(id = "lastName")
private WebElement lastName;

@FindBy(id = "userEmail")
private WebElement userEmail;

@FindBy(xpath = "//div[@id='genterWrapper']/div/div/label[@class='custom-control-label']")
private List<WebElement> genderElements;

@FindBy(id = "userNumber")
private WebElement userNumber;

@FindBy(id = "dateOfBirthInput")
private WebElement dateOfBirth;

@FindBy(className = "react-datepicker__month-select")
private WebElement dateOfBirthMonth;

@FindBy(className = "react-datepicker__year-select")
private WebElement year;

@FindBy(xpath = "//div[@class='react-datepicker__month']//div[not(contains(@class,'--outside-month')) and @role='option']")
private List<WebElement> dateOfBirthDays;

@FindBy(id = "subjectsInput")
private WebElement subjectsInput;

@FindBy(xpath = "//div[@id='hobbiesWrapper']/div/div/label[@class='custom-control-label']")
private List<WebElement> hobbiesElements;

@FindBy(id = "uploadPicture")
private WebElement uploadPictureElement;

@FindBy(id = "currentAddress")
private WebElement currentAddress;

@FindBy(id = "state")
private WebElement state;

@FindBy(id = "react-select-3-input")
private WebElement stateElement;

@FindBy(id = "react-select-4-input")
private WebElement city;

@FindBy(xpath = "//button[@id='submit']")
private WebElement submit;

@FindBy(id = "example-modal-sizes-title-lg")
private WebElement thankYouMessage;

@FindBy(xpath = "//table[@class='table table-dark table-striped table-bordered table-hover']/tbody/tr")
private List<WebElement> tableValues;

Expand Down
1 change: 0 additions & 1 deletion src/test/java/pages/WindowsPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public WindowsPage(WebDriver driver) {

@FindBy(id = "tabButton")
private WebElement newTab;

@FindBy(id = "windowButton")
private WebElement newWindow;

Expand Down

0 comments on commit f9fa4a3

Please sign in to comment.