Jump to content
Sign in to follow this  
Suji

Help

Recommended Posts

Hi @Suji, and welcome to the AutoIt forum :)
Take a look at _IETagNameGetCollection() in the Help file ;)


Click here to see my signature:

Spoiler

Thoughts:

  • I will always thank you for the time you spent for me.
    I'm here to ask, and from your response, I'd like to learn.
    By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

ALWAYS GOOD TO READ:

 

Share this post


Link to post
Share on other sites

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 

Share this post


Link to post
Share on other sites

Additional info:

<li class="con-col2">371532</li  => i have many employee IDs and need to fetch one by one.. it has same class name for all emp IDs

Share this post


Link to post
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"

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...