diff options
author | Sriram Viswanathan <sriramv@thoughtworks.com> | 2017-03-10 11:25:40 -0300 |
---|---|---|
committer | Sriram Viswanathan <sriramv@thoughtworks.com> | 2017-03-10 11:25:40 -0300 |
commit | 1e62467a7adfafe91025cf6c8955d54770e705aa (patch) | |
tree | bfe963e7b258fe6e7c0bdb5ce65493dd5b5e6b00 /service/test/functional/features | |
parent | c36b8ca0fee86f52096a5336fd009d58a7279f37 (diff) |
|#000|Sriram| Fix functional test - get element by id rather than css selector for cc-bcc collapse
Diffstat (limited to 'service/test/functional/features')
-rw-r--r-- | service/test/functional/features/steps/compose.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/service/test/functional/features/steps/compose.py b/service/test/functional/features/steps/compose.py index 1dab1b6d..1b90052e 100644 --- a/service/test/functional/features/steps/compose.py +++ b/service/test/functional/features/steps/compose.py @@ -19,7 +19,9 @@ from behave import when from common import ( fill_by_css_selector, - find_element_by_css_selector) + find_element_by_css_selector, + find_element_by_id +) @when('I compose a message with') @@ -52,7 +54,7 @@ def send_impl(context): @when(u'I toggle the cc and bcc fields') def collapse_cc_bcc_fields(context): - cc_and_bcc_chevron = find_element_by_css_selector(context, '#cc-bcc-collapse') + cc_and_bcc_chevron = find_element_by_id(context, 'cc-bcc-collapse') cc_and_bcc_chevron.click() |