Jump to content

Help


Suji
 Share

Recommended Posts

Thanks for the warm welcome!!!!!

#include <IE.au3>

$oIE = _IEAttach("http://sqms/Dashboard/AssociateSelectionForEval.aspx?Mode=TGlzdEFzc29jaWF0ZUZvckNvYWNoaW5nRW50cnk=", "URL")
Winactivate("SQMS - Coach - Internet Explorer","")

$oForm = _IEFormGetObjByName($oIE, "form1")
$oInputs = _IETagNameGetCollection($oIE, "li")

    For $oInput in $oInputs

         If $oInput.ClassName = "con-col2" And $oInput.InnerText = "351755" Then

            $oInput.Click

            ExitLoop

        EndIf

    Next
 

Didnt help.  @FrancescoDiMuro 

Link to comment
Share on other sites

$oIE = _IEAttach("http://sqms/Dashboard/AssociateSelectionForEval.aspx?Mode=TGlzdEFzc29jaWF0ZUZvckNvYWNoaW5nRW50cnk=", "URL")
Winactivate("SQMS - Coach - Internet Explorer","")

Local $sMyString = "351755"
Local $oLinks = _IELinkGetCollection($oIE)
For $oLink In $oLinks
    Local $sLinkText = _IEPropertyGet($oLink, "innerText")
    If StringInStr($sLinkText, $sMyString) Then
        _IEAction($oLink, "click")
        ExitLoop
    EndIf
Next
 

Can u help with example?.... for _IELinkGetCollection to fetch the employee ID from "<li class="con-col2">371532</li"

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...