2gis / Winium.Cruciatus

C# Framework for automated testing of Windows application based on WinFroms and WPF platforms.
Mozilla Public License 2.0
137 stars 66 forks source link

Winium to identify objects using VBName #80

Open NiveditaNimm opened 6 years ago

NiveditaNimm commented 6 years ago

Hi,

I'm working on automating a native desktop application using Winium which has only VBName property as unique identifier. VBName property does not show up using Inspect or UI Spy tool but i was able to get it using UFT object Spy. We have tried below approach and none of them worked out

  1. Using VBName in xpath
  2. override the Winium methods to operate on VBObjects using unique property VbName,
  3. implement the VB environment methods and create our own driver to handle the VBObjects something like driver.findelement(By.vbname(""))

Let me know if there is any other approach i can try or is there some other way the driver can be customized to handle this. I appreciate any help in this regards.

Thanks, Nivedita

janakikola commented 2 years ago

Hi,

We have the same issue, App is developed in Delphi. When i inspect the objects using Test Complete ,I see VCLObject type for the objects. But with UISPY, it is a normal pane object.

When invoke app , there is a screen with user name and password displaying. Scripts are failing with no element found error.

Is Winium compatible with applications developed with Delphi. Using sikuli is not an idle solution for us.