I try to write test for GUI app throw Winium + Selenium But main point, that I can't finished process what start throw test.
*** Settings ***
Library Process
Suite Setup suite_setup
Suite Teardown suite_teardown
*** TestCases ***
testcase1
Click Element id=btnHome
Click Element id=tbLPN
Input Text id=tbLPN testtext
Click Element id=btnManualRequest
Click Element id=btnHome
*** Keywords ***
suite_setup
Start process C:\\test\\Winium.Desktop.Driver.exe shell=yes alias=first
Start process C:\\test\\Services.exe shell=yes alias=second
${procID1} = Get Process Id first #here I just checked that alias is working
${procID1} = Get Process Id second #here I just checked that alias is working
Import Library Selenium2Library
${winium_host}= Set Variable localhost
${winium_port}= Set Variable 9999
${capabilities}= Create Dictionary app=C:\\test\\Gui.exe
Create Webdriver Remote command_executor=http://${winium_host}:${winium_port} desired_capabilities=${capabilities}
sleep 8
suite_teardown
Terminate Process first True
I think that problem is winium, because I try this way with simple calc.exe, and it's working well.
How to kill GUI app? because throw Terminate Process it's not working(
Artem
Best way to kill GUI it's navigate to 'Close' button