
Automationuser
Active Members-
Posts
56 -
Joined
-
Last visited
Everything posted by Automationuser
-
Run autoit script from command prompt
Automationuser replied to Automationuser's topic in AutoIt General Help and Support
thanks jginch, FireFox I will google it before posting these kinds of queries in future. Thanks a lot. -
Run autoit script from command prompt
Automationuser replied to Automationuser's topic in AutoIt General Help and Support
Hi FireFox, How to set the path variable in cmd?? Can you please give lil more info on this?? -
Hi everyone, I am trying to run an autoit script from cmd. I used the following command. Autoit3.exe RunMe.au3. it throws an error saying "autoit3.exe' is not recognized as an internal or external command error". Need help on this. Basically I am trying to run a batch file with the above command to execute my test scripts.
-
Not able to select a value form combobox
Automationuser replied to Gokul's topic in AutoIt General Help and Support
Try using $hWnd=ControlGetHandle("Title", "", "[NAME:controlname]") _GUICtrlComboBox_SelectString($hWnd, "Test1") And also looks like the dropdown item "Test1" is not specified properly in your first post. "Test1" should be put inside double quotes not single. ControlCommand("Title", "", "[NAME:controlname]", "SelectString", "Test1") -
Need Help about Status Bar?
Automationuser replied to KalaiselvanK's topic in AutoIt General Help and Support
Post "Autoit Window info" summary of the control. -
Need Help about Status Bar?
Automationuser replied to KalaiselvanK's topic in AutoIt General Help and Support
Have a look at the _GUICtrlStatusBar_GetText($hWnd, $iPart) function in help file -
Fetching run time menu item text
Automationuser replied to Automationuser's topic in AutoIt General Help and Support
@Melba23 : Thank you very much..that worked perfectly.. Learnt some new things today. -
Hi All, I want to fetch the run time menu item text. 1. I have to right click on a list view item. 2. A pop-up menu with 4 items appears and I have to fetch the text of the menu. Is there any way to perform step 2 using autoit. Any help will be appreciated. Thanks in advance.
-
Hi Amit, I want to understand and implement this type of error handling in my framework. I have few doubts. 1) What is "process1" and "process2" in the below code? Process_Kill(Run("process1")) Run("process2") 2) From your post you are trying to skip the execution of rest of the current script if any error is found and continue with the execution of next script. When an error is found how are you skipping the execution of the script and continue with the next one?
-
ListView Selected Item Text
Automationuser replied to MadaraUchiha's topic in AutoIt General Help and Support
First fetch the selected item index and then use this index in _GUICtrlListView_GetItemText. $Index=ControlListView( "title", "text", controlID,"GetSelected") $txt=_GUICtrlListView_GetItemText($hWnd, $Index) -
After clicking on the link use winwaitactive() to check if tht window is active if WinWaitActive ("Security Warning","",15) then controlclick("Security Warning","","[CLASS:Button; INSTANCE:1]") endif the above code will wait for 15 secs for the window to get active. If active then it will click on the allow button instance. its better you use controlID or instance to identify "allow" button
-
@Water, I truely agree. _WriteResult function should be modified to do error checks
-
In the above code, if you refer to $oExcel.Application.ActiveSheet.Columns($TCIDIndex).Select _ExcelWriteCell($oExcel, $TCStatus, $TCRow, $TCResIndex) Here $TCIDIndex="A"(TestCase no. column.Ex : A,B,C), $TCResIndex=2(If result column no. is 2)
-
Hi veerendra, From your post I see you are trying to automate a testcase. this is what I follow to write testcase result. If $ExpResult="Correct" then _WriteResult("Pass","TC_No_01") Else _WriteResult("Fail","TC_No_01") EndIf ;========================================================================================================== ;Function Name : _WriteResult ;Functionality : This function will write the result to Excel ;Input : TestCase Status, TestCase No. ;Output : - ;========================================================================================================== Func _WriteResult($TCStatus,$TCNo) ; Write the test result to Excel Sheet if FileExists($excelFile) Then $oExcel.Application.ActiveSheet.Columns($TCIDIndex).Select ; Select the Testcase ID column $TCAddress=$oExcel.Application.Selection.Find($TCNo).Address ; Find the address of the Testcase ID ConsoleWrite("$TCAddress:"&$TCAddress&@CRLF) ; Addess will be in $Column$Row format (Ex : $B$14) $TCRow=StringTrimLeft($TCAddress,3) ; Remove the first 3 characters from left hand side (Ex : $B$) ConsoleWrite("$TCRow="&$TCRow) _ExcelWriteCell($oExcel, $TCStatus, $TCRow, $TCResIndex) ; Write the result EndIf EndFunc
-
If you want to right click on a tree view item, first you need to fetch the handle of that item and then you need to pass this handle to _GUICtrlTreeView_ClickItem(). the below script right clicks on a first item in a tree view $TreeVwHWD = ControlGetHandle("Win_TITLE", "","[CLASS:SysTreeView32; INSTANCE:1]") ; Fetch tree view control handle $firstItmHWD = _GUICtrlTreeView_GetFirstItem($TreeVwHWD) ; Fetch the firstitem handle ConsoleWrite("$firstItmHWD :"&$firstItmHWD & @CRLF) _GUICtrlTreeView_ClickItem($TreeVwHWD, $firstItmHWD , "Right") ; Right Click on the first item