Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
selenium-riot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Teodoro David Nina Mamani
selenium-riot
Commits
07b689b8
Commit
07b689b8
authored
Aug 02, 2017
by
Nandy Limachi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
testRiot.js
testRiot.js
+22
-0
No files found.
testRiot.js
0 → 100644
View file @
07b689b8
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment