-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfb.js
More file actions
77 lines (47 loc) · 1.61 KB
/
fb.js
File metadata and controls
77 lines (47 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#var webdriver = require('webdriverio'),
// chrome = require('chromedriver'),
// By = require('selenium-webdriver').By,
// until = require('selenium-webdriver').until;
//
// var driver = new webdriver.Builder()
// .forBrowser('chrome')
// .build();
#added a comment
client = webdriver.remote({ desiredCapabilities: {browserName: 'firefox'} });
console.log('here')
client.init()
.url('http://facebook.com')
.click('#email')
.keys('[email protected]')
.click('#pass')
.keys('')
.click('input#u_0_w') /* click for login */
.click('div._1k67._4q39') /* click for profile */
//.click('a._39g5')
//.click('span._50f5_5kx5')
//.click('div#u_0_g') /* click on message box */
//.click('div#MercuryJewelFooter') /* click on see all */
/*.selectorExecute('ul#wmMasterViewThreadlist')
.selectorExecute('._l1',function (a,b)
{
console.log(a,b);
} ); */
// client.elements('._l1',function(a,b)
// {
// console.log(a,b);
//} );
//.click('div._l2')
//.click('div._1rt')
//.click('a.seeMore')
//.click('span.f_click')
//.click('a#u_0_g')
// .click('div._2n_9')
// setTimeout (function(){client.init().click('div._2n_9')},10000)
// setTimeout(function)
//.timeouts('Page load',10000)
// client.timeouts('',500);
//.waitForSelected('div._2n_9.f_click',[500])
//.click('input.inputtext.textinput')
//.click('a#Findfriends')
// driver.get('http://www.facebook.com/').click("#email");
// driver.quit();