Commit 0ef41299 authored by Nandy Limachi's avatar Nandy Limachi

Update testRiot.js

parent 27fc45df
......@@ -180,19 +180,21 @@ test.describe( 'Testing Riot', function() {
if( numeroContactos === '0' ){
lista_Chat.forEach(function( element ){
contadorN++;
driver.findElement( by.xpath( '//*[@id="matrixchat"]/div/div[2]/aside[1]/div[3]/div/div[2]/div' ) ).click();
driver.wait(until.elementLocated( by.xpath( '//*[@id="matrixchat"]/div/div[2]/aside[1]/div[3]/div/div[2]/div' )), 10000 ).click();
driver.sleep(2000);
driver.wait( until.elementLocated( by.xpath( '//*[@id="textinput"]' )), 10000 ).sendKeys( lista_Chat[ contadorN ] );
driver.findElement( by.xpath( '//*[@id="mx_Dialog_Container"]/div/div[1]/div/div[5]/button' ) ).click( );
driver.sleep(2000);
driver.sleep(3000);
});
}
else{
nuevoContacto.forEach( function( element ){
contadorN++;
driver.findElement( by.xpath( '//*[@id="matrixchat"]/div/div[2]/aside[1]/div[3]/div/div[2]/div' ) ).click();
driver.wait(until.elementLocated( by.xpath( '//*[@id="matrixchat"]/div/div[2]/aside[1]/div[3]/div/div[2]/div' )), 10000 ).click();
driver.sleep(2000);
driver.wait(until.elementLocated( by.xpath( '//*[@id="textinput"]' )), 10000 ).sendKeys( nuevoContacto[ contadorN ] );
driver.findElement( by.xpath( '//*[@id="mx_Dialog_Container"]/div/div[1]/div/div[5]/button' ) ).click();
driver.sleep(2000);
driver.sleep(3000);
});
}
return driver.sleep( 2000 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment