I am trying to build a use case for Oracle Apps HTML Pages (not oracle forms). So it should follow the basic web automation principal.
Scenario: I want to set the organization and check back if the organization is set properly by retrying 3 times.
Now as per the above image where is what I am doing:
- Find elements the Organization label, organization input and Go button with WaitForReady = Complete
- Get Text of the organization label
- IF the selected organization <> To be organization THEN
Type Into Organization field
Click Go button (which submit the same page)
Selection successful. Stop.
- Retry steps 1 to 3
Now for the first time of the loop, it is working fine and selecting the desired organization and setting it properly. But in the 2nd time getting error in type into or click:
Click - Organization go button : The UiElement is no longer valid
ideally it should not go for click activity in 2nd time as now the desired organization value is selected as shown below.
It seems the Find element is not waiting for the label to appear (in 2nd loop) when the page is refreshed after clicking the Go button.
After the Click on Go button, I tried to use a dummy find element on a table in that page just to make sure the page refresh happen properly and wait for it. Did not work.
Tried to put a delay of 2 sec after the click on go button. did not work.
Tried to put a delay of 3 sec after the click on go button. Worked
Now the issue is how much dealy is appropriate? To avoid that, I am using find elements with WaitForReady = Complete but seems it is not working as expected.
Any solution or known issue for UiPath CE Studio 2018.2.3 version? Your help is appreciated.