Jump to content

[SOLVED] - How to tick the checkbox in the table (Internet Explorer)

Recommended Posts

Hi everybody

Currently I need to tick a checkbox that runs on IE. But I can't click on it. Although the correct object has been specified. Here is my code:

#include <IE.au3>

$oIE = _IEAttach("WEB")

$oLinks = _IETagNameGetCollection($oIE, 'span')

For $oLink In $oLinks

    $a = String($oLink.classname) == 'x-column-header-text'
    $b = StringLeft(String($oLink.id), 10) == 'gridcolumn'
    If $a And $b Then
        _IEAction($oLink, "click")
        ConsoleWrite("Founded" & @CRLF)
        ConsoleWrite("Not Found" & @CRLF)

After inspecting the element it shows only 1 line of code:

<div class="x-column-header x-column-header-checkbox x-column-header-align-left x-box-item x-column-header-default x-unselectable x-column-header-first x-grid-hd-checker-on" id="gridcolumn-1588" style="margin: 0px; left: 0px; top: 0px; width: 24px; right: auto; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px;">
    <div class="x-column-header-inner" id="gridcolumn-1588-titleEl">
        <span class="x-column-header-text" id="gridcolumn-1588-textEl"></span>

Here is an image of the checkbox:


I used more ways to check:
- _IEGetObjById => IEAction($oLink, "click") not working
- _IETableGetCollection => _IETableWriteToArray gives an error
- _IEImageClick

All are not working.

Hope to get a response from everyone.
Thank you very much.

Edited by phoenixhuynh09
Link to comment
Share on other sites

  • phoenixhuynh09 changed the title to [SOLVED] - How to tick the checkbox in the table (Internet Explorer)

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...