File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
pytest-bdd/tests/step_defs Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ def ddg_home(browser):
45
45
46
46
@when (parsers .parse ('the user searches for "{phrase}"' ))
47
47
def search_phrase (browser , phrase ):
48
- search_input = browser .find_element_by_name ( 'q ' )
48
+ search_input = browser .find_element_by_id ( 'search_form_input_homepage ' )
49
49
search_input .send_keys (phrase + Keys .RETURN )
50
50
51
51
52
52
@when (parsers .parse ('the user searches for the phrase:\n """{text}"""' ))
53
53
def search_long_phrase (browser , text ):
54
- search_input = browser .find_element_by_name ( 'q ' )
54
+ search_input = browser .find_element_by_id ( 'search_form_input_homepage ' )
55
55
search_input .send_keys (text + Keys .RETURN )
56
56
57
57
@@ -72,5 +72,5 @@ def search_results(browser, phrase):
72
72
links_div = browser .find_element_by_id ('links' )
73
73
assert len (links_div .find_elements_by_xpath ('//div' )) > 0
74
74
# Check search phrase
75
- search_input = browser .find_element_by_name ( 'q ' )
75
+ search_input = browser .find_element_by_id ( 'search_form_input ' )
76
76
assert search_input .get_attribute ('value' ) == phrase
You can’t perform that action at this time.
0 commit comments