-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDI-2122-713-5.5-Casos Uso VistaSignUp.
- Loading branch information
1 parent
74e346e
commit 3197880
Showing
2 changed files
with
184 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
40 changes: 40 additions & 0 deletions
40
src/test/java/com/uniovi/sdi/pageobjects/PO_SignUpView.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.uniovi.sdi.pageobjects; | ||
|
||
import com.uniovi.sdi.util.SeleniumUtils; | ||
import org.junit.jupiter.api.Assertions; | ||
import org.openqa.selenium.By; | ||
import org.openqa.selenium.WebDriver; | ||
import org.openqa.selenium.WebElement; | ||
import java.util.List; | ||
|
||
public class PO_SignUpView extends PO_NavView { | ||
|
||
static public void fillForm(WebDriver driver, String dnip, String namep, String lastnamep, | ||
String passwordp, String passwordconfp) { | ||
WebElement dni = driver.findElement(By.name("dni")); | ||
dni.click(); | ||
dni.clear(); | ||
dni.sendKeys(dnip); | ||
WebElement name = driver.findElement(By.name("name")); | ||
name.click(); | ||
name.clear(); | ||
name.sendKeys(namep); | ||
WebElement lastname = driver.findElement(By.name("lastName")); | ||
lastname.click(); | ||
lastname.clear(); | ||
lastname.sendKeys(lastnamep); | ||
WebElement password = driver.findElement(By.name("password")); | ||
password.click(); | ||
password.clear(); | ||
password.sendKeys(passwordp); | ||
WebElement passwordConfirm = driver.findElement(By.name("passwordConfirm")); | ||
passwordConfirm.click(); | ||
passwordConfirm.clear(); | ||
passwordConfirm.sendKeys(passwordconfp); | ||
//Pulsar el boton de Alta. | ||
By boton = By.className("btn"); | ||
driver.findElement(boton).click(); | ||
} | ||
|
||
|
||
} |