Jump to content

_IELinkClickByText do not work

Recommended Posts

Guys need help, why second _IELinkClickByText not working ? First click is ok, but second click is problem. 

Warning from function _IELinkClickByText, $_IESTATUS_NoMatch but text is correct. 

First click, changed browser adress is this a problem ?

Thanks for answer.


Func zmazanie()

$oIE = _IECreate("http://www.bazos.sk/moje-inzeraty.php/")

$cozmazat =  GUICtrlRead($nadpis)

Sleep (2000) 

_IELinkClickByText($oIE, $cozmazat)

Sleep (2000)

_IELinkClickByText($oIE, "Zmazať/ Editovať/ Topovať")



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Mucho
      I'm trying to navigate down my company's website. I successfully use _IELinkClickByText to open the first link ("Today's Events") which opens a new page with a different address.
      Then I need to click on another link ("Meetings") on this new page to get to my destination but I can't get it right.
      I cannot use _IENavigate as the address link of "Meetings" can change.
      I cannot find any good example on this forum and the web to follow, so I hope someone can help.
      #include <IE.au3> ;Main Page $oIE =_IECreate ("http://abc/xyz/", 0, 1, 1, 1) WinSetState("Report - ABC - Windows Internet Explorer","",@SW_MAXIMIZE) Send("{Enter}") ;Login ; Second Level _WinWaitActivate("ABC Intranet Systems - Windows Internet Explorer","") _IELinkClickByText ($oIE, "Today's Events") ;Click on this link after logging in. ; Third Level _WinWaitActivate("Report - ABC - Windows Internet Explorer","") $oIE = _IEAttach ("Report - ABC - Windows Internet Explorer","", "url") ; I want to click on "Meetings", the addess of which is not constant. _IELinkClickByText ($oIE, "Meetings") #region --- Internal functions Au3Recorder Start --- Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc
    • By 6105
      Dear guys,

      i have a trouble, maybe someone will can help me?

      I need to open an javascript link and can't find solution.

      ArchoTag of the link:
      Index: 22
      Tag: A
      Name: cmntLnk
      Extra Information: Link Text: Link 31
      Extra Information: Href: javascript:;
      Obj Type: DispHTMLAnchorElement

      I think there is 3 solutions:
      By clicking the dynamic text "Link 2 or Link 123 or Link n"
      By opening javascript href. there is 5 javascripts.
      Or by using _IETagNameGetCollection, i don't know how to use this function to open link

      Now i try it, but IELinkClickByText don't click on A tag link:

      $oElements = _IETagNameGetCollection($oIE,"A") $text = "" For $oElement In $oElements StringRegExp($oElement.innerText, "Link") If not @error then $text = $oElement.innerText Next _IELinkClickByText($oIE,$text)
      Any tips pls how to open this link.

      Thank you.

      EDIT: Fix CODE.
  • Create New...