-
Notifications
You must be signed in to change notification settings - Fork 0
/
UserRegisterationPage.java
42 lines (32 loc) · 1.12 KB
/
UserRegisterationPage.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class UserRegisterationPage extends PageBase
{
public UserRegisterationPage(WebDriver driver)
{
super(driver);
}
@FindBy(xpath= "//div[@class='form-group']//input[1]")
WebElement typeName;
@FindBy(xpath= "//div[@class='form-group']//input[2]")
WebElement typeEmail;
@FindBy(xpath= "//div[@class='form-group']//input[3]")
WebElement typePhone ;
@FindBy(xpath= "//div[@class='form-group']//input[4]")
WebElement typePassword ;
@FindBy(xpath= "//div[@class='form-group']//input[5]")
WebElement confirmPassword ;
@FindBy(xpath= "//div[@class='form']//div[2]/button")
WebElement registerButton ;
public void userRegistration(String Name,String Email,String Phone, String Password)
{
setTextElementText(typeName, Name);
setTextElementText(typeEmail, Email);
setTextElementText(typePhone, Phone);
setTextElementText(typePassword, Password);
setTextElementText(confirmPassword, Password);
clickButton(registerButton);
}
}