From dbe1e9d510be5d14f45d2254618a62e9e8e22e7f Mon Sep 17 00:00:00 2001 From: Suvendu-UI Date: Thu, 10 Oct 2024 00:03:25 +0530 Subject: [PATCH] Add check for zero job count in seek.rb returning "No jobs found" --- seek/seek.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/seek/seek.rb b/seek/seek.rb index 0bf240e11..6be0b74e9 100755 --- a/seek/seek.rb +++ b/seek/seek.rb @@ -361,6 +361,9 @@ def extract_keys_and_values(output_obj) # Using the CSS selector element = page.at('#SearchSummary > h1 > span[data-automation="totalJobsCount"]') job_count = element ? element.text : "0" + if job_count == "0" + puts "No jobs found" + else puts "#{job_count} jobs found" else