I have a question about select_list which got populated in run time according to the option of some other select list.
For an example If I choose motor car make
in my select_list, then model
select_list got populated. but the problem is, I have to wait for few seconds before I interact with model
select_list otherwise it throws the error no options present(because it takes some time to populate). I find very interesting thing in WATIR 6.0.2 like
b.link(:id,'NewContactNewGenFromMenu_Link').wait_until(&:visible?).click
which first confirm the element present through implicit wait using when_present
, then it waits until element visible, this is amazing change. But Is there anything to check whether select list options got populated? Is any new arrangement?
b.link(:id,'NewContactNewGenFromMenu_Link').click
. The implicitpresent
check means that Watir waits for the element to exist and be visible. – Justin Ko