Commit 28e87f62 authored by Nandy Limachi's avatar Nandy Limachi

Merge branch 'desarrollo' into 'master'

Se añadio la creacion de salas y conversaciones

See merge request !2
parents 07b689b8 9ce098f8

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

# Instalación
## Dependencias
Instalar las siguientes dependencias
sudo apt-get install nodejs
npm install --global mocha
npm install --global selenium-webdriver
## Compilación
Clonar el proyecto
Modifique el archivo room sin dejar espacios vacíos
USERNAME: nombre-de-usuario
PASSWORD: contraseña
Modifique el archivo chats sin dejar espacios vacíos
###Ejecución del test
Ingresar a la carpeta selenium-riot y ejecutar la siguiente linea
mocha testRiot.js
# Selenium Riot - Genera de Sala y Chats
Accede directamente a un navegador para cargar la pagina de Riot.
Posteriormente ingresa el usuario y contraseña para iniciar sesión.
Iniciada la sesión se crea una nueva sala si esta no existe; posteriormente añade los contactos.
Por ultimo crea conversaciones de contactos, si estos no existen.
## Instalación
[Archivo de instalación](
## Tecnologías utilizadas:
* [Selenium](
* [Node.js](
* [Mocha](
\ No newline at end of file
File added
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
Copyright 2011-2017 Software Freedom Conservancy
Copyright 2004-2011 Selenium committers
# selenium-webdriver
Selenium is a browser automation library. Most often used for testing
web-applications, Selenium may be used for any task that requires automating
interaction with the browser.
## Installation
Selenium may be installed via npm with
npm install selenium-webdriver
You will need to download additional components to work with each of the major
browsers. The drivers for Chrome, Firefox, PhantomJS, Opera, and
Microsoft's IE and Edge web browsers are all standalone executables that should
be placed on your system [PATH]. Apple's safaridriver is shipped with
Safari 10 for OS X El Capitan and macOS Sierra. You will need to enable Remote
Automation in the Develop menu of Safari 10 before testing.
| Browser | Component |
| ----------------- | ---------------------------------- |
| Chrome | [chromedriver(.exe)][chrome] |
| Internet Explorer | [IEDriverServer.exe][release] |
| Edge | [MicrosoftWebDriver.msi][edge] |
| Firefox | [geckodriver(.exe)][geckodriver] |
| PhantomJS | [phantomjs(.exe)][phantomjs] |
| Opera | [operadriver(.exe)][opera] |
| Safari | [safaridriver] |
## Usage
The sample below and others are included in the `example` directory. You may
also find the tests for selenium-webdriver informative.
var webdriver = require('selenium-webdriver'),
By = webdriver.By,
until = webdriver.until;
var driver = new webdriver.Builder()
driver.wait(until.titleIs('webdriver - Google Search'), 1000);
### Using the Builder API
The `Builder` class is your one-stop shop for configuring new WebDriver
instances. Rather than clutter your code with branches for the various browsers,
the builder lets you set all options in one flow. When you call
`Builder#build()`, all options irrelevant to the selected browser are dropped:
var webdriver = require('selenium-webdriver'),
chrome = require('selenium-webdriver/chrome'),
firefox = require('selenium-webdriver/firefox');
var driver = new webdriver.Builder()
.setChromeOptions(/* ... */)
.setFirefoxOptions(/* ... */)
Why would you want to configure options irrelevant to the target browser? The
`Builder`'s API defines your _default_ configuration. You can change the target
browser at runtime through the `SELENIUM_BROWSER` environment variable. For
example, the `example/google_search.js` script is configured to run against
Firefox. You can run the example against other browsers just by changing the
runtime environment
# cd node_modules/selenium-webdriver
node example/google_search
SELENIUM_BROWSER=chrome node example/google_search
SELENIUM_BROWSER=safari node example/google_search
### The Standalone Selenium Server
The standalone Selenium Server acts as a proxy between your script and the
browser-specific drivers. The server may be used when running locally, but it's
not recommend as it introduces an extra hop for each request and will slow
things down. The server is required, however, to use a browser on a remote host
(most browser drivers, like the IEDriverServer, do not accept remote
To use the Selenium Server, you will need to install the
[JDK]( and
download the latest server from [Selenium][release]. Once downloaded, run the
server with
java -jar selenium-server-standalone-2.45.0.jar
You may configure your tests to run against a remote server through the Builder
var driver = new webdriver.Builder()
Or change the Builder's configuration at runtime with the `SELENIUM_REMOTE_URL`
environment variable:
SELENIUM_REMOTE_URL="http://localhost:4444/wd/hub" node script.js
You can experiment with these options using the `example/google_search.js`
script provided with `selenium-webdriver`.
## Documentation