-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathSuiteTest09.java
More file actions
31 lines (23 loc) · 1.12 KB
/
SuiteTest09.java
File metadata and controls
31 lines (23 loc) · 1.12 KB
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
package com.browserstack.suite;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.browserstack.BrowserStackTestNGTest;
import io.appium.java_client.MobileBy;
import io.appium.java_client.ios.IOSElement;
public class SuiteTest09 extends BrowserStackTestNGTest {
@Test
public void test_09() throws Exception {
IOSElement textButton = (IOSElement) new WebDriverWait(driver, 30).until(
ExpectedConditions.elementToBeClickable(MobileBy.AccessibilityId("Text Button")));
textButton.click();
IOSElement textInput = (IOSElement) new WebDriverWait(driver, 30).until(
ExpectedConditions.elementToBeClickable(MobileBy.AccessibilityId("Text Input")));
textInput.sendKeys("hello09@browserstack.com"+"\n");
Thread.sleep(5000);
IOSElement textOutput = (IOSElement) new WebDriverWait(driver, 30).until(
ExpectedConditions.elementToBeClickable(MobileBy.AccessibilityId("Text Output")));
Assert.assertEquals(textOutput.getText(),"hello09@browserstack.com");
}
}