Jump to content

sqa

Active Members
  • Posts

    44
  • Joined

  • Last visited

sqa's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Basically I need to type a text in 2 text boxes and press Save button to proceed further. After pressing Save button the text disappears from those text boxes. Local $oIE = _IEAttach("page") $firstName = "Andy" $lastName = "Gour" $oDiv = _IEGetObjById($oIE, "2c54f866-bf1b-4999-b587-7971d7d8648c") $oFirstName = _IEGetObjById($oDiv, "b91587da-5723-4b0f-8c5d-2c42f80e99ab") $oLastName = _IEGetObjById($oDiv, "f1bee0d0-651a-49aa-887b-4bab3745072f") ;fill up _IEAction($oFirstName, "focus") _IEFormElementSetValue($oFirstName, $firstName) Sleep(500) _IEAction($oLastName, "focus") _IEFormElementSetValue($oLastName, $lastName) The code works perfectly and text is in text boxes, but as soon as I press save button for this page the text disappears and status check for those text-boxes shows they are empty. If I use Selenium webdriver - no problem, Sikuli - no problem as well, only with AutoIt. Thanks
  2. the problem is: a text box I am typing in is inactive. It becomes active when user start typing in it or clicking on it. using _IEFormElementSetValue sets the value in the text-box, but it still remain inactive. it even do not do check for upper case inputs. how to make it behave like with keyboard inputs? Thanks
  3. thanks, I didn't created it. Now it works
  4. I am really stuck with this. #include<IE.au3> local $oIE = _IEAttach("Application") ; the name of Tab local $oForm = _IEFormElementGetObjByName($oIE, "lastName") ; "lastName" - <input name="lastName" class...> running it,, there is an error: _IEFormElementGetObjByName, $_TESTATUS_InvalidObjectType What's wrong?
  5. I need to connect and perform some automation to an opened already www page. I tried: Local $oIE=_IEAttach("Home") Local $oForm = _IEFormGetObjectByName($oIE,"lastName") ;trying to find a text-box that has name=lastName _IEFormElementSetValue($oForm,"test") when I run it I am getting: Invalid object type. what's wrong with my understanding how AutoIt works with IE? Thanks _
  6. unfortunatel AutoIt Window Info Tool doesn't work at all with wpf, only with a regular Windows app.
  7. hm, never thought about it, OK, let me try to be little bit more specific 1. this is a UI based application with a main dialog and buttons on it, pressing these buttons opens new forms in the main dialog or out of it. Pressing buttons on that forms you can add some objects like new printers with their properties that user can edit. Text boxes with data in. So pretty much that's it. that's why if it would be a regular Windows app I wouldn't have problems with it using AutoIt, but developers desided to make it look "cool" and used WPF. In this case: 2. AutoIt Info doesn't work at all and I have to try Snoop tool and in this tool I found that controls represented in the different way then for regular Windows apps. That's why I am asking if somebody already has a such experience and can give an advice (any kind advice) because it is my first try.
  8. Hi, I just got for testing my first WPF application and wondering if it is possible to use autoit for the automation or I have to look for other possibilities? Thanks
  9. Hi, I have the following problem: I have a web app in FireFox and there is a button I have to click at. I don't want to do it using the button coordinates - they may change. Window Info doesn't see this button or any control on this page. I can find this button, let say xpath using FireBug, but have no clue how to use it in ControlClick command. Can somebody tell me how I can do it? Thanks
  10. I have something like 900 lines of code and during its testing I don't want to run all of them every time, but skip some. Let say to execute lines 1-100 and then to skip to 500-... In VB I would use GOTO, but how can I do the same in AutoIt? I can try to comment these lines 101-499, but is there something else? Thanks
  11. Thank you guys.
  12. exactly, you got it!!! sorry I never was a good writer
  13. Hi, let say I have: c:/Parent folder/ Folder 1 start.au3 Folder 2 run.exe How can I navigate into run.exe folder without using in a script path 'c:/' part? In this case the whole <Parent folder> can be used on different computers. I can figure out a silly way doing it by checking @WorkingDir and extracting the path before <Parent folder>, that will be different for other computers, but this extracting thing tells me that there must be much better way. Thanks
  14. You are right, but my problem is I am executing several commands in DOS and each of them writes in the log. 1. execute DOS command1 > log.txt 2. analyze the log 3. execute DOS command2 > log.txt 4. analyze the log between step 1 and 2 I must be sure that the log is finalized and released by DOS, and only after that I can do step 2.
  15. Hi, I am redirecting Command Prompt logs into a text file, How can I know (programmatically) that this txt file has been released by DOS and I can use it? I tried by time modification, but it appeared that this time changes while DOS still writing in it. I can see that DOS complete its work from the DOS window, but how can I find it out programmatically? Thanks
×
×
  • Create New...