Hello,
I cannot figure out how do I make vbscript click a button on a webpage which, according to "Inspect Element" is represented by this code:
Code:
<td class="a" id="logout" onclick="BtnClickPreHandler(this);" onmouseover="HoverOn(this)" onmouseout="HoverOff(this);" title="Log out">
<img class="d" id="logout_d" src="/style/2011/images/buttons/logout_up.gif" style="display: none;">
<img class="a" style="" id="logout_a" src="/style/2011/images/buttons/logout_up.gif">
<img class="h" style="display: none;" id="logout_h" src="/style/2011/images/buttons/logout_up.gif">
<span id="logout_s" class="a">Log out</span>
</td>
I was able to click normal buttons with something like
Code:
appIE.Document.getElementsByName("Submit").Item(0).Click
I tried this
Code:
objButton = appIe.Document.GetElementByID("logout") msgbox typename(objButton)
Code:
appIE.Document.getElementsByName("loginSubmit").Item(0).Click
Code:
<button name="loginSubmit" type="submit">
Any ideas how do I click the <td> buttons? Most of the buttons on this website are as cells of a table.