Jump to content

Automationuser

Active Members
  • Posts

    56
  • Joined

  • Last visited

Everything posted by Automationuser

  1. thanks jginch, FireFox I will google it before posting these kinds of queries in future. Thanks a lot.
  2. Hi FireFox, How to set the path variable in cmd?? Can you please give lil more info on this??
  3. 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.
  4. use controlgettext() to fetch the file name. To rename filename use ControlSend().
  5. 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")
  6. Post "Autoit Window info" summary of the control.
  7. Have a look at the _GUICtrlStatusBar_GetText($hWnd, $iPart) function in help file
  8. Thanks Mikell, This doesn't work on external application Is there any other way. to do this?? Or _GUICtrlListView_ClickItem() should be modified to include subitem?
  9. @Mikell, I want to double click on the subitem. _GUICtrlListView_ClickItem() doesn't have subitem parameter.
  10. Hi Guys, Can anyone help me with this. Still I am not able to double click on the second column in a list view
  11. click on the AutoItinfo.exe from installed path and drag the Finder tool in the window on the toolbar. You will get the control properties with Class, instance, ID etc.
  12. I am trying to fetch the text color from external application which contains list view. I am fetching the handle of list view $HWD= ControlGetHandle("ABC","",200)
  13. Hi All, _GUICtrlListView_GetTextColor returns -16777216 for all the colors. Am I missing something? $HWD= ControlGetHandle("ABC","",200) $Color=_GUICtrlListView_GetTextColor($HWD) please help
  14. Can you post the properties of the frame toolbar from Autoit info tool?
  15. 1. Get the handle of the toolbar. 2. Use _GUICtrlToolbar_ClickIndex($hWnd, $iIndex) to click on the button
  16. @Melba23 : Thank you very much..that worked perfectly.. Learnt some new things today.
  17. 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.
  18. 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?
  19. @Amit : What kind of errors you are observing? You mean to say error in your script or in the application you are testing?
  20. 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)
  21. 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
  22. @Water, I truely agree. _WriteResult function should be modified to do error checks
  23. 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)
  24. 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
  25. 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
×
×
  • Create New...