Commit 07b689b8 authored by Nandy Limachi's avatar Nandy Limachi

Initial commit

parents
var webdriver = require('selenium-webdriver');
var until = webdriver.until;
var by = webdriver.By;
var driver = new webdriver.Builder().withCapabilities(webdriver.Capabilities.firefox()).build();
driver.get('https://riot.im/app/#/login');
driver.wait(until.elementLocated(by.name('username')), 10000, 'Could not locate the child element within the time specified');
driver.findElement(by.name('username')).sendKeys('example');
driver.findElement(by.name('password')).sendKeys('password456');
driver.findElement(by.id('advanced')).click();
driver.findElement(by.id('hsurl')).clear();
driver.findElement(by.id('hsurl')).sendKeys('https://matrix.agetic.gob.bo');
driver.sleep(4000);
driver.findElement(by.className('mx_Login_submit')).click();
driver.sleep(20000);
\ No newline at end of file
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