|How to get result of aut.execute(Component.checkEnablement(true/false),"check comp") in B [message #1834428]
||Tue, 10 November 2020 08:37
| Nidhi Kashyap
Registered: August 2020
I want to get result of
aut.execute(dropdown.checkEnablement(true/false),"") in form Boolean , so that I can perform a comparison. But the return type is Result<String> and I am not able to get Boolean value if my component is enabled or not.
As a result my test case is getting failed whenever checkForEnablement is getting failed.
I need to perform below functionality but my test case is getting failed on checkforEnablement is getting failed.
public static void waitForComponent(ComboComponent dropdown)
while(aut.execute(dropdown.checkEnablement(false),"") != null)
aut.execute(dropdown.waitForComponent(time), "wait for comp");
if(aut.execute(dropdown.checkEnablement(true),"") != null)
time=time+5000; System.out.println("increase time loop back again");
[Updated on: Tue, 10 November 2020 08:38]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01702 seconds