MicroSip Softphone is installed, and when you receive an incoming call, you need to pull out a phone number. What to use in this case?
2 answers
For access to UI program elements there are 2 access technologies UI Automation and MSAA
For the first there is a good Winium wrapper that allows you to work with WinForms and WPF through Selenum WebDriver. You can see which elements with what attributes are on the form using the Inspect or UISpy utilities here.
An example of working with WinForm using Winium (taken from the Readme)
namespace ConsoleApplication { using System.Windows.Automation; using Winium.Cruciatus.Core; using Winium.Cruciatus.Extensions; public class Program { private static void Main(string[] args) { var calc = new Winium.Cruciatus.Application("C:/windows/system32/calc.exe"); calc.Start(); var winFinder = By.Name("Calculator").AndType(ControlType.Window); var win = Winium.Cruciatus.CruciatusFactory.Root.FindElement(winFinder); var menu = win.FindElementByUid("MenuBar").ToMenu(); menu.SelectItem("View$Scientific"); menu.SelectItem("View$History"); win.FindElementByUid("132").Click(); // 2 win.FindElementByUid("93").Click(); // + win.FindElementByUid("134").Click(); // 4 win.FindElementByUid("97").Click(); // ^ win.FindElementByUid("138").Click(); // 8 win.FindElementByUid("121").Click(); // = calc.Close(); } } } - I am not on the topic of the main issue, can you say that you can click buttons in the web in this way? Many modern applications are OS-native window-wrapper, within which a webcam is launched (examples are weak, Skype for Linux, etc.) - goldstar_labs
- Many of these applications are made on Elecrtron and it seems like you can test them through ChromeDriver for this in ChromeOptions for the option.BinaryLocation = property "C: \\ mydev \\ electron-quick-start-master \\ node_modules \\ electron \\ dist \ \ electron.exe "; The way to your application - B. Vandyshev
- @ b-vandyshev, thanks I will try - goldstar_labs
|
The second option is to use proxy, intercept and disassemble network traffic and get the phone number from the request. Here you can use the Titanium project.
|