File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
test/sanity/issue4877-inject-webview Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 32
32
try :
33
33
wait_window_handles (driver , 2 )
34
34
print driver .current_url
35
- result = driver . find_element_by_id ( 'inject_start' ). get_attribute ( 'innerHTML ' )
35
+ result = wait_for_element_id ( driver , 'inject_start' )
36
36
print 'inject_js_start: %s' % result
37
37
assert ('success' in result )
38
38
elems = driver .find_elements_by_tag_name ('h1' )
39
39
assert (len (elems ) == 1 )
40
40
driver .switch_to_window (driver .window_handles [1 ])
41
- result = driver . find_element_by_id ( 'inject_start' ). get_attribute ( 'innerHTML ' )
41
+ result = wait_for_element_id ( driver , 'inject_start' )
42
42
print 'inject_js_start in iframe: %s' % result
43
43
assert ('success' in result )
44
44
elems = driver .find_elements_by_tag_name ('h1' )
You can’t perform that action at this time.
0 commit comments