Jump to content

amirmahallati

Members
  • Posts

    6
  • Joined

  • Last visited

amirmahallati's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks, I don't get that error anymore, but how do I verify that the text "Cover Sheet" exists in the PDF file. I tried to do what you see in the code below, but no indication appears as to whether it passed. I don't get an error either if I try to compare $text with a text that doesn't exist in the PDF. Local $text = ControlGetText("pdf", "Cover Sheet", "[CLASS:AVL_AVView; INSTANCE:17]") StringInStr($text, "Cover Sheet")
  2. When I run the code below I get the error that I have attached. This code is meant to click on the "Open with..." radio button in the screen that pops up in FireFox when trying to open a file, click on the "OK" button to open the PDF file, then verify the existence of the text "Cover Sheet" in the PDF file. #region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=00000409) --- #region --- Internal functions Au3Recorder Start --- Func _Au3RecordSetup() Opt('WinWaitDelay',100) Opt('WinDetectHiddenText',1) Opt('MouseCoordMode',0) Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '') If $aResult[1] <> '00000409' Then MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(00000409->' & $aResult[1] & ')') EndIf EndFunc Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc _AU3RecordSetup() #endregion --- Internal functions Au3Recorder End --- _WinWaitActivate("Opening","") MouseClick("left",46,176,1) MouseClick("left",287,297,1) Opt("WinTitleMatchMode", 2) ControlGetText("pdf". "Cover Sheet". "[CLASS:AVL_AVView; INSTANCE:17]") #endregion --- Au3Recorder generated code End ---
  3. Hi, ControlGetText is very inflexible for me. I am not able to verify the existence of whatever text that I want. It just gets a specific text and none other. Is this true, or am I not using it right? Thanks
  4. Oh, and I pointed my project to .Net Framework 2 in Visual Studio, but still cannot install AutoitX. Says it's not compatible with v2.
  5. Can I use AutoIt alongside Selenium WebDriver? I've already written a ton of test scripts with WebDriver, but I also need AutoIt to do things like uploading an Excel file to our web application. Is WebDriver compatible with .Net Framework 2? Thanks, Amir
  6. Hi, I have 4.5.1 installed, but AutItX is not compatible with it. Thanks
×
×
  • Create New...