What is the syntax of "Control Click" Keyword to click an button on a window.
I am trying to automate the windows app. I need to do the following steps (STEP 1,2 and 3 are working. I am having issue in STEP 4):
STEP 1: Start a app using batch file
STEP 2: Click a "Next >" button using coordinates with the "Mouse Click" keyword.
STEP 3: Click a text box and input some text.
STEP 4: I need to click a "Next >" button. I tried using "Mouse Click" that I used in STEP 2. But it is not working.
So I am planning to use "Control Click" keyword as shown below. But I am getting "com_error: (-2147352561, 'Parameter not optional.', None, None)" error.
Robot file:
***Settings***
Library AutoItLibrary
Library Collections
Library String
*** Variables ***
${Run_batchfile} C:\\Users\\test\\Desktop\\software_install.bat
${Title} Setup - test software
***Test Cases***
testcase1
Run ${Run_batchfile}
Wait For Active Window ${Title} TimeOut=140
Mouse Click strButton=LEFT, nX=887, nY=523, nClicks=2, nSpeed=1000
Mouse Click strButton=LEFT, nX=456, nY=225, nClicks=1, nSpeed=-1
Wait For Active Window ${Title}
Send strSendText=, c:\\test_te
Control Click strTitle=${Title}, strText=${Title}, strControl=1, strButton=Next >, nNumClicks=2, nX=888, nY=524
Run time logs:
C:\Users\test\Desktop\RFW with AutoIt>pybot auto.robot
==============================================================================
Auto
==============================================================================
testcase1 .
C:\Users\test\Desktop\RFW with AutoIt>echo off
testcase1 | FAIL |
com_error: (-2147352561, 'Parameter not optional.', None, None)
------------------------------------------------------------------------------
Auto | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output: C:\Users\test\Desktop\RFW with AutoIt\output.xml
Log: C:\Users\test\Desktop\RFW with AutoIt\log.html
Report: C:\Users\test\Desktop\RFW with AutoIt\report.html
C:\Users\test\Desktop\RFW with AutoIt>
Could anyone please tell me, How to use "Control Click" keyword to click a button in a windows's screen?
Thanks, Kumar.