File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ def checkStatus():
21
21
USER = "/html/body/div[1]/div/div/div[2]/div[1]/span/div/span/div/div[2]/div[1]/div/div/div[2]/div/div"
22
22
ONLINE = "/html/body/div[1]/div/div/div[4]/div/header/div[2]/div[2]/span"
23
23
24
- browser = webdriver .Chrome (executable_path = r"/Users/sanketwable/downloads/chromedriver" )
24
+ browser = webdriver .Chrome (
25
+ executable_path = r"/Users/sanketwable/downloads/chromedriver" )
25
26
browser .get ("https://web.whatsapp.com/" )
26
27
27
28
print ("Loading..\n " )
@@ -37,7 +38,8 @@ def checkStatus():
37
38
search .send_keys (user_name )
38
39
time .sleep (2 )
39
40
40
- user = browser .find_element_by_xpath ('//span[@title="{}"]' .format (user_name ))
41
+ user = browser .find_element_by_xpath (
42
+ '//span[@title="{}"]' .format (user_name ))
41
43
user .click ()
42
44
43
45
time .sleep (2 )
@@ -50,4 +52,4 @@ def checkStatus():
50
52
print ("is offline\n " )
51
53
52
54
53
- print ("Done checking WhatsApp online Status" )
55
+ print ("Done checking WhatsApp online Status" )
Original file line number Diff line number Diff line change 8
8
"Pravin Kardile" ,
9
9
"Harry cse" ,
10
10
"Nipun Nitkkr It" ,
11
- ]
11
+ ]
You can’t perform that action at this time.
0 commit comments