Jump to content

Recommended Posts

Posted

I tried many ways

_IETagnameGetCollection

_IELinkClickByText

all are failures

checked a lot of methods and there is no one.

Please help

i need click "B456"

 

 

html

 

<div class="menu">
            <ul id="menuUl"><li class="">a123</li><li>a456</li><li>b123</li><li>b456</li><li>c123</li><li id="webMassage" class="on">站内消息</li><li class="nb">安全退出</li></ul>
        </div>

    </div>

 

 

Posted
For $i = 0 To 50
    $otest = _IEGetObjById($oIE, "menuUl")
;~  $otestclick = _IEFormGetCollection($otest)
    $otestclick = _IELinkGetCollection($otest,$i)
    MsgBox(0,0,$otestclick)
    $otestclick.click
    MsgBox(0, 0, $i)
Next

 

$otest  object has also tried $oie

Posted (edited)

 I have tried several ways

$oInputs2 = _IETagNameGetCollection($oIE, "button")
For $oInput2 In $oInputs2
    If $oInput2.type = "button" And $oInput2.value = "b456" Then
        _IEAction($oInput2, "click")
        Sleep(500)
    EndIf

Next

 

 

 

i also have one question

Is this because I am not familiar with css?

or autoit?

Edited by jerryHu
Posted (edited)
"A123|ReportSearch/ReportNew.aspx",            "A456|ReportSearch/Report.aspx"        ]    },    "B123": {        "ut": [            "B456|/teryPeriod/Historytery.aspx"        ]    },    "C123": {        "ut": [            "站内消息|/NewsManage/NewsList.aspx"        ]    },    "安全退出": {        "ut": [            "Quit.aspx"        ]    }}

<script language="javascript"

I found this from the source code.

 

I tried to add ReportSearch/Report.aspx to the URL to display an illegal path.

 

Edited by jerryHu

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
×
×
  • Create New...