Click on a check box located under Nested tables

Welcome Forums General PowerShell Q&A Click on a check box located under Nested tables

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
1 year, 6 months ago.

  • Author
    Posts
  • #72257

    Participant
    Points: 0
    Rank: Member

    I am working on PowerShell script for website automation, i need to click on a checkbox that is inside a lot of tables. How to achieve it, please help...

    I have exapnded the DOM explorer and did a COPY-XPATH, COPY Selector options for the checkbox element, below are the details. How to update in powershell to select this check box

    Copy – Xpath //*[@id="G0_1_R0"]/td[1]/div/input

    Copy _ selector #G0_1_R0 > td.JSSelectGrid > div > input[type="checkbox"]

    Copy _ Element

    input type="checkbox" name="grs0_1" tabindex="3" 
  • #72412

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    So, unfortunately this isn't really a PowerShell question. This is DOM manipulation, and I assume you're going to have to use the old, deprecated Internet Explorer COM object. PowerShell isn't really well designed for interactive website manipulation like this.

The topic ‘Click on a check box located under Nested tables’ is closed to new replies.