|
6 | 6 |
|
7 | 7 | public class LoginPage {
|
8 | 8 |
|
9 |
| - private final RemoteWebDriver driver; |
| 9 | + private final RemoteWebDriver driver; |
10 | 10 |
|
11 |
| - public LoginPage(RemoteWebDriver driver) { |
12 |
| - this.driver = driver; |
13 |
| - } |
| 11 | + public LoginPage(RemoteWebDriver driver) { |
| 12 | + this.driver = driver; |
| 13 | + } |
14 | 14 |
|
15 |
| - public WebElement getBobUserButton() { |
16 |
| - return driver. findElement( AppiumBy. accessibilityId( "[email protected]")); |
17 |
| - } |
| 15 | + public WebElement getBobUserButton() { |
| 16 | + return driver. findElement( AppiumBy. accessibilityId( "[email protected]")); |
| 17 | + } |
18 | 18 |
|
19 |
| - public WebElement getVisualUserButton() { |
20 |
| - return driver. findElement( AppiumBy. accessibilityId( "[email protected]")); |
21 |
| - } |
| 19 | + public WebElement getVisualUserButton() { |
| 20 | + return driver. findElement( AppiumBy. accessibilityId( "[email protected]")); |
| 21 | + } |
22 | 22 |
|
23 |
| - public WebElement getLoginButton() { |
24 |
| - return driver.findElement(AppiumBy.accessibilityId("Login")); |
25 |
| - } |
| 23 | + public WebElement getLoginButton() { |
| 24 | + return driver.findElement(AppiumBy.accessibilityId("Login")); |
| 25 | + } |
26 | 26 |
|
27 |
| - public void clickBobUserButton() { |
28 |
| - getBobUserButton().click(); |
29 |
| - } |
| 27 | + public void clickBobUserButton() { |
| 28 | + getBobUserButton().click(); |
| 29 | + } |
30 | 30 |
|
31 |
| - public void clickVisualUserButton() { |
32 |
| - getVisualUserButton().click(); |
33 |
| - } |
34 |
| - |
35 |
| - public void clickLoginButton() { |
36 |
| - getLoginButton().click(); |
37 |
| - } |
| 31 | + public void clickVisualUserButton() { |
| 32 | + getVisualUserButton().click(); |
| 33 | + } |
38 | 34 |
|
| 35 | + public void clickLoginButton() { |
| 36 | + getLoginButton().click(); |
| 37 | + } |
39 | 38 | }
|
0 commit comments