Jump to content

LubeLee

Active Members
  • Posts

    25
  • Joined

  • Last visited

Everything posted by LubeLee

  1. I won't work. All I want is to click the COMPOSE to compose a new mail. You can try to do it.
  2. I used _IEFrame* but not work so I used _IETagNameGetCollection. The problem is it works with iframes but not work with divs
  3. You're wrong, '==' is right. I have no problem with it. But I have problem with $divs = _IETagNameGetCollection($ifr, "div"). $ifr is ok but I can't get any divs inside it. This is my problem.
  4. I use this code $ifrs = _IETagNameGetCollection($oIE, "iframe") MsgBox(0, 1, @extended) Local $ifr For $ifr In $ifrs MsgBox(0, 1, $ifr.id) If $ifr.id == "canvas_frame" Then ExitLoop Next MsgBox(0, 1, $ifr.id) $divs = _IETagNameGetCollection($ifr, "div") ; get no divs here MsgBox(0, 1, @extended&"div start") but I can't get any divs at line $divs = _IETagNameGetCollection($ifr, "div") Please help,
  5. Please help me. No one here can help me
  6. I logined to Gmail, then I tried to get its iframes, but no success $ifrs = _IEFrameGetCollection($oIE) MsgBox(0, 1, @extended) Local $ifr For $ifr In $ifrs MsgBox(0, 1, $ifr.id) // I run this code but there is no msgbox here [HELP ME TO EXPLAIN THIS] If $ifr.id == "canvas_frame" Then ExitLoop Next I run the code but there is no MsgBox at MsgBox(0, 1, $ifr.id). So I can't do anything more. Because as we know Gmail organized by iframes. If you fail to get iframe, you can do no more. Thanks for your help,
  7. Please refer to [help docs ] for example & detailed info on functions used here For this case, since the submit control is actually a hyper-link, u may try _IELinkClickByText() But the general method to do a submission is [1]to get the submission control[1] and [2]to do an _IEAction($submissionControl, "click") on it[2] So, generally, we have to do [1] and [2] [2] is simple - just put $submissionControl that u got from [1] - just so [1] is the problem of identification - there are 3 built-in functions to deal with this a/_IEFormGetObjByName --- b/_IEGetObjByName --- c/_IEGetObjById a/ to deal with a submission in a form --- while --- b/, c/ to deal with an outside one - u can also identify a submission control through some of its UNIQUE attributes here I give an example to idenfify a submission control through its "href" attribute (as long as this attribute exists, it is almost obvious to be UNIQUE to controls) Func LinkClickByHref(ByRef $oIE, $href) ; BIG NOTICE ; get all links on page $oLinks = _IELinkGetCollection ($oIE) ;$iNumLinks = @extended ;MsgBox(0, "Link Info", $iNumLinks & " links found") $count = 0 For $oLink In $oLinks ;MsgBox(0, $count & " Link Info", $oLink.href) ; BIG NOTICE ; get link by href If $oLink.href = $href Then ; BIG NOTICE ; this is number [2] _IEAction ($oLink, "click") Return True EndIf $count += 1 Next Return False EndFunc
  8. Yes, DaleHohm It is hard for thinking without some pieces of evidence I would like to navigate to "http://ecomm.dell.com/myaccount/login.aspx" (In IE, you have to navigate 2 times, because with the 1st time, it makes an error that I can't explain why) There is an iframe with form there and I want to [1] put data, and [2] submit the form, [3] get the result of submition (by Text) Thanks,
  9. I IE to a page that has Javascript to generate an iframe with a form So I can not know names or ids of the form or the form's elements - because when I view source, there is nothing like <iframe> <form> ... but just the Javascript that I think generates the form I overcome this by using Firebug Inspect I use _IENavigate() to the page _IELoadWait($IE) ; _IEFrameGetCollection ( $IE, 0 ) ; I use this with index 0 because this frame has no name or id and it is the only frame in the page _IELoadWait($frame) ; <next command> but the <next command> which is an MsgBox() is not reached Please help me with why this happens Thanks,
  10. I had a look, before asking this question, at Remarks but I don't think it's that way. But I is really that way solving my problem. Thanks,
  11. I make a form submit with _IEFormSubmit() but this function does not return. This happens when IE status showing that "Done but with errors on page." and I think this causes _IEFormSubmit() not return. Please help me with any ways to get over this case. Thanks,
  12. No, absolutely not Repetition is no need But I think IE.au3 is not enough or is too fixed, -- see my followed facts: 1] I want to have IE in background - no need to show a window -- this shows IE.au3 is too fixed 2] I want to delete it cookies by COM -- not by Send(), Click() by its window, menu, dialogs -- this says IE.au3 is not enough Guide me more, thanks, bro
  13. I have an e-mail in var $email. Help me to check if it is of the form "[mail_id]@[sub_domain].netscape.net" And please guide me how to get advance with String regular expression in AutoIt Thanks,
  14. COM is an interface to applications in Windows to let AutoIt works with them. So if I want to work with IE COM. Where can I find IE COM's interface? And what are the example AutoIt code to work with it? Thanks for ur help,
  15. Thank you very much!!!
  16. Yes, thanks, bros, But while IE is minimized or invisible, how can I do things like, FORM FILL & IE CONFIG (such as Delete Cookies --- I can do this through IE's menu when IE is visible) Pls. help,
  17. Get form first Then, get elements of form Especially the function _IEFormElementGetObjByName See Help for this function ; ******************************************************* ; Example 1 - Get a reference to a specific form by name. In this case, submit a query ; to the Google search engine. Note that the names of the form and form ; elements can be found by viewing the page HTML source ; ******************************************************* ; #include <IE.au3> $oIE = _IECreate ("http://www.google.com") $oForm = _IEFormGetObjByName ($oIE, "f") $oQuery = _IEFormElementGetObjByName ($oForm, "q") _IEFormElementSetValue ($oQuery, "AutoIt IE.au3") _IEFormSubmit ($oForm) Is FSoft = FPT Soft (.vn)?
  18. I am doing a small util. 1. It opens IE, navigates to a URL 2. It inputs data to a form on IE 3. It clears cookies as follows: Tools - Internet Options - Delete... - Delete all... - Yes - OK 4. It repeats the procedure from Step 1. to Step 3. for another input data. My problem is my IE must appear on screen while doing these Steps. I want my IE to do these Steps but it must appear as minimized. Is there any way to do this Pls. help,
  19. I solved it The problem is: Think I have 2 lines of code: ; line 1 _IENavigate(...) ; line 2 WinWaitActive("Security Information", "") Function _IENavigate have 2 options, returns immediately or returns after page load is complete The message box appeared in the middle of page load and I used the default option of _IENavigate(...) which is returns after page load is complete So although the message box appeared but the code of line 2 wasn't executed until I manually close it which makes condition for page load to complete and _IENavigate(...) returns Thanks Happy that we got some new
  20. I navigate to an URL, IE shows a small message box: "Title: Security Information , Text: This connection is insecure. Are you sure? ..." But I can't close this message box I used: WinWaitActive("Security Information", "") WinClose("Security Information", "") But it didn't work This looks mysterious to me. Please help
  21. This question is still unsolved What is the matter, bros? Why don't we have try "_IEGetObjById"? - This is not optimal but usable, right? OR think of Dale suggest (remarks of "_IEFormGetCollection") Here: */ no ID or Name needed to identify form/element but its order of appearance in the returned HTML page (and this order is something we always have) #include <IE.au3> $oIE = _IECreate ("http://www.google.com") $oForm = _IEFormGetCollection ($oIE, 0) ; I realize my desired form is the 1st form (forms/elements order starts with 0) $oQuery = _IEFormElementGetCollection ($oForm, 1) ; similarly, I realize my desired form element is the 2st element of the form $oForm _IEFormElementSetValue ($oQuery, "AutoIt IE.au3") ; no care, this is the problem of identification _IEFormSubmit ($oForm) ; no care, this is the problem of identification OR make an improve to IE.au3 add to it the accompany of "_IEFormGetObjByName" - "_IEFormGetObjById" For this, we need help of the author of IE.au3
  22. Thanks, an MVP pro I had a quick glance at them (_IEErrorHandlerRegister, _IEErrorNotify) I will do it in more depth for now. Thanks
  23. What about other situations, bro?
  24. I am doing automation with IE by IE.au3 I do many HTTP requests by _IENavigate OR _IEClick Sometimes page load is not fully complete OR interrupted OR loaded with message in IE status bar like "Done but with errors on page." Please guide me to detect these situations Thanks, "bros"
×
×
  • Create New...