You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In RF version 4 and above, I am getting exception when using "Wait Until Page Contains Element" inside run_keyword_and_return_status as given below :
result = BuiltIn().run_keyword_and_return_status("Wait Until Page Contains Element", element, '0.5s')
Suspended due to logged failure: ValueError: Argument 'timeout' got value '0.5s' that cannot be converted to None.
Not getting this error in earlier version 3.2.2.
But this works fine if I use wait_until_page_contains_element:
sl = BuiltIn().get_library_instance('SeleniumLibrary')
sl.wait_until_page_contains_element(element, '0.5s')
Example:
*** Keywords ***Wait Until Page Contains One Of The Elements${sfc_lnk_element1}${sfc_lnk_element2}
Python Library
@keyworddefwait_until_page_contains_one_of_the_elements(*elements, timeout=10):
result=Falsecount=len(elements)
forindexinrange(0, int(timeout), int(count*0.5)):
forelementinelements:
result=BuiltIn().run_keyword_and_return_status("SeleniumLibrary.Wait Until Page Contains Element", element, '0.5s')
ifresult:
breakifnotresult:
BuiltIn().fail('Page could not find any of the elements specified')