File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
test/sanity/issue6231-linux-websocket-more-than-2-connections Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 3
3
import shutil
4
4
import platform
5
5
import sys
6
+ sys .path .append (os .path .dirname (os .path .dirname (os .path .abspath (__file__ ))))
7
+ from nw_util import *
6
8
7
9
if platform .system () != 'Linux' :
8
10
print 'Skipped for non Linux platform'
20
22
try :
21
23
print driver .current_url
22
24
23
- result1 = driver . find_element_by_id ( 'socket1' ). get_attribute ( 'innerText ' )
25
+ result1 = wait_for_element_id ( driver , 'socket1' )
24
26
assert ('Socket 1 open' in result1 )
25
27
26
- result2 = driver . find_element_by_id ( 'socket2' ). get_attribute ( 'innerText ' )
28
+ result2 = wait_for_element_id ( driver , 'socket2' )
27
29
assert ('Socket 2 open' in result2 )
28
30
29
- result3 = driver . find_element_by_id ( 'socket3' ). get_attribute ( 'innerText ' )
31
+ result3 = wait_for_element_id ( driver , 'socket3' )
30
32
assert ('Socket 3 open' in result3 )
31
33
32
- result4 = driver . find_element_by_id ( 'socket4' ). get_attribute ( 'innerText ' )
34
+ result4 = wait_for_element_id ( driver , 'socket4' )
33
35
assert ('Socket 4 open' in result4 )
34
36
finally :
35
37
driver .quit ()
You can’t perform that action at this time.
0 commit comments