I may be misunderstanding, but you probably want something that'll loop until 
a condition is met, then poll all of the (divs, spans whatever) checking for 
one with text matching job name + status. Watir has some wait functionality and 
there are gems that do this also. rspec-wait's pretty good but I haven't used 
in in a while. You'd end up with *something* like this:
wait_for { browser.divs.any? { |div| div.text =~ /#{job_name}\s+#{status}/ } }
Something like that. It's early and haven't had coffee yet so YMMV.
    On Wednesday, February 6, 2019, 3:26:51 PM PST, Joe Fl 
<joeflec...@gmail.com> wrote:  
 
 As a user I want to confirm the job I requested has completed with results.
The list contains many jobs in many different statuses.  
status is as follows: pending, running, result

On Tuesday, January 29, 2019 at 3:13:05 AM UTC-5, Lakshya Kapoor wrote:
What exactly are you trying to test with the jobs? We'll need a proper test 
case to be able to help you.

On Monday, January 28, 2019 at 11:23:25 AM UTC-8, Joe Fl wrote:
Hi all,
I have a list of jobs being executed that show the progress of the job.  This 
list refreshes every second and I am wondering if anyone automated this before. 
 I will create then execute the job and continue look at the list of jobs until 
its results return.  The other challenge is my original job could move from the 
#1 spot to lower in the list.
Any thoughts on how to approach this would be greatly appreciated.
Thank you,Joe



-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.
 
watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to