I have a piece of code which is functioning correctly as expected. But the step still waits for the element and fails always..
Explanation about the step : There are two menu items, only one appears at a time based on some conditions..I want to click the menu items. I write a piece of code saying if (a="x") , then Click the menu item
Else Click on menu item and click on button..
I have 2 iterations in which the first iterations satisfies the Else condition and works perfect.. Second iteration satisfies If condition and Works perfect. But even after clicking the menu item, the step is not exiting , it still looks for element and fails as "Wait for condition timed out"
Code Snippet :
Public Sub Test()
Dim Menu = Pages.xxx.ListItem6.Innertext
Dim a = Menu
If (a=sample test") then
' Call the other sub procedure here
call Nithya_Test ----------------------- In this procedure , I click the button in the pop up
Could you please help me to fix this..