Quantcast
Channel: Silk Test - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 625

Silk4Net FormsWindow fails to find an known FormsWindow Object in Silk test Version 17.0.0.8241

$
0
0


How to enable a visible object when an already located object in the application under test gets invisible during record and replay
I have stepped through the Silk4Net code using the
debugger and I can see that the program puts more than 10mn to find the located object and some times it fails because it cannot find the located object. I added a Verify propeties of the TestObject and I found the following result:


Assert.AreEqual(false, formsWindow.Visible);
Assert.AreEqual(true, formsWindow.Enabled);
As you can see: formsWindow.Visible = False even if the formsWindow is displayed.


Note : I use the Locator Path instead of the Object Map:

public static readonly Desktop _desktop = Agent.Desktop;
RemoteAgent agent1 = Agent.Connect("My PC");
FormsWindow formsWindowFrmSampleApplication = agent1.Desktop.FormsWindow("@automationId='frmSampleApplication'");
formsWindowFrmSampleApplication.SetFocus();
formsWindowFrmSampleApplication.SetActive();
FormsWindow FormSampleApp = desktop.< FormsWindow > find("/FormsWindow[@caption='Windows Forms Sample Application']");

Can someone advise why the formsWindow.Visible property is always set to false? And what can I do to make this object visible?

Thank you,


Viewing all articles
Browse latest Browse all 625

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>