Hello
After an update from version 10.1.0 to 10.5.1 i have some problems with the visibility of items.
After some attempts of fixing the probmle my code locks like this:
Validate.AttributeEqual(repo.xxx, "Enabled", "true");
repo.xxx.EnsureVisible();
repo.xxx.WaitForAttributeEqual(5000, "Visible", "true");
repo.xxx.Click();
So it is ensure visible and WaitForVisible and on the Click i still geht the error message:
Element is not visible in the UI and thus click can't be perfomed.
Maybe somebody can help.
Error: Element is not visible in the UI and thus click can't be perfomed.
Re: Error: Element is not visible in the UI and thus click can't be perfomed.
Hi, what's the nature of the element (button, dropdown, etc.)?
For the avoidance of doubt, does the same error occur if you try the recording playback?
For the avoidance of doubt, does the same error occur if you try the recording playback?
Re: Error: Element is not visible in the UI and thus click can't be perfomed.
I also had the same problem. I solved it by not doing a click performance but a move.to Mouse.ButtonDown / move.to Mouse.ButtonUp.
Then it worked.
repo.XXXXX.XXXXX.Btn.MoveTo();
Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
Delay.Milliseconds(200);
Then it worked.
repo.XXXXX.XXXXX.Btn.MoveTo();
Mouse.ButtonDown(System.Windows.Forms.MouseButtons.Left);
Delay.Milliseconds(200);
Re: Error: Element is not visible in the UI and thus click can't be perfomed.
I am having the same problem. But then with a remote desktop.
I am using virtuel machine. When closing the RDP it doesn't seem to find the elements anymore.
When open is does.
Any other sollution then changing it to a move?
I am using virtuel machine. When closing the RDP it doesn't seem to find the elements anymore.
When open is does.
Any other sollution then changing it to a move?
Re: Error: Element is not visible in the UI and thus click can't be perfomed.
Hi,
The same situation applies here. A frequently used recording is failing in one specific test, as mentioned earlier. This issue does not occur in all other test runs. The problem arises because an element cannot be located, even though it exists.
Initially, a warning message is displayed:
Is there a command for Ranorex to update its repositories without creating a snapshot?
Hope this helps,
BCTest
The same situation applies here. A frequently used recording is failing in one specific test, as mentioned earlier. This issue does not occur in all other test runs. The problem arises because an element cannot be located, even though it exists.
Initially, a warning message is displayed:
Subsequently, the following error message appears:The mouse action was performed outside the boundaries of the assigned UI element. (null)
Now, here's the intriguing part: The recording is able to execute the test successfully if Ranorex captures a snapshot just before the test. It's almost as if Ranorex needs to refresh its own repositories.The element is not visible in the UI, and therefore, a click cannot be performed.
Is there a command for Ranorex to update its repositories without creating a snapshot?
Hope this helps,
BCTest