Hi,
We're migrating from WebAii 1.1 to WebAii 2.0 and found some problems.
One of them it's a problem with Manager.ActiveBrowser Property.
When I'm using on of these methods:
Manager.ActiveBrowser.WaitUntilReady();
Manager.ActiveBrowser.RefreshDomTree();
I'm receiving an error:
System.NullReferenceException: Object reference not set to an instance of an object.
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'IsReady',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_e525dafc-eedf-434b-867a-ce3dadb58785',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.NullReferenceException: Object reference not set to an instance of an object.
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.IsReady()
at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
But when I'm using Manager.Browsers[0] everything is ok, But unfortunately this workaround require us to do huge amount of work, because we have already created a lot of tests (3000+) which now work using WebAii 1.1
Could you assist us with this issue?
Best regards,
Artem Nenashev