From 35193d5c05b39de1dbcaf41d567b023038dbb7df Mon Sep 17 00:00:00 2001 From: "at.ramya" Date: Fri, 21 Dec 2018 14:29:59 +0530 Subject: Using find_elements instead of all_elements --- qa/qa/page/project/issue/show.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qa/qa/page/project/issue') diff --git a/qa/qa/page/project/issue/show.rb b/qa/qa/page/project/issue/show.rb index 23def93c7dd..9ec6d90719e 100644 --- a/qa/qa/page/project/issue/show.rb +++ b/qa/qa/page/project/issue/show.rb @@ -37,17 +37,17 @@ module QA def select_comments_only_filter click_element :discussion_filter - all_elements(:filter_options)[1].click + find_element(:filter_options, "Show comments only").click end def select_history_only_filter click_element :discussion_filter - all_elements(:filter_options).last.click + find_element(:filter_options, "Show history only").click end def select_all_activities_filter click_element :discussion_filter - all_elements(:filter_options).first.click + find_element(:filter_options, "Show all activity").click end end end -- cgit v1.2.1