Android test wait

v2
pabloFuente 2025-11-08 02:21:38 +01:00
parent 770ffaeed6
commit 94c362f96f
1 changed files with 19 additions and 10 deletions

View File

@ -380,19 +380,28 @@ public class OpenViduMobileE2eTest extends AbstractOpenViduTestappE2eTest {
final String SESSION_NAME = "NativeAndroidTestSession"; final String SESSION_NAME = "NativeAndroidTestSession";
final String USER_NAME = "NativeAndroidUser"; final String USER_NAME = "NativeAndroidUser";
androidUser.getWaiter().until(ExpectedConditions.elementToBeClickable(By.id("start_finish_call"))); WebElement urlInput = androidUser.getWaiter()
.until(ExpectedConditions.elementToBeClickable(By.id("openvidu_url")));
WebElement urlInput = appiumDriver.findElement(By.id("openvidu_url"));
WebElement secretInput = appiumDriver.findElement(By.id("openvidu_secret"));
WebElement sessionNameInput = appiumDriver.findElement(By.id("session_name"));
WebElement userNameInput = appiumDriver.findElement(By.id("participant_name"));
urlInput.clear(); urlInput.clear();
secretInput.clear(); Thread.sleep(500);
sessionNameInput.clear();
userNameInput.clear();
urlInput.sendKeys(OPENVIDU_URL); urlInput.sendKeys(OPENVIDU_URL);
WebElement secretInput = androidUser.getWaiter()
.until(ExpectedConditions.elementToBeClickable(By.id("openvidu_secret")));
secretInput.clear();
Thread.sleep(500);
secretInput.sendKeys(OPENVIDU_SECRET); secretInput.sendKeys(OPENVIDU_SECRET);
WebElement sessionNameInput = androidUser.getWaiter()
.until(ExpectedConditions.elementToBeClickable(By.id("session_name")));
sessionNameInput.clear();
Thread.sleep(500);
sessionNameInput.sendKeys(SESSION_NAME); sessionNameInput.sendKeys(SESSION_NAME);
WebElement userNameInput = androidUser.getWaiter()
.until(ExpectedConditions.elementToBeClickable(By.id("participant_name")));
userNameInput.clear();
Thread.sleep(500);
userNameInput.sendKeys(USER_NAME); userNameInput.sendKeys(USER_NAME);
appiumDriver.findElement(By.id("start_finish_call")).click(); appiumDriver.findElement(By.id("start_finish_call")).click();