Jump to content

Recommended Posts

Posted (edited)

Hello guys, yet again another question. :) 

Currently trying to make a script that navigates around on a webpage, currently i tried this 

 

$btnSwitch = .document.getElementById("IDNAME").click()
$btnSwitch = .document.getElementsById("IDNAME")

for $b in $btnSwitch
    if $b.innerHTML = "buttonName" Then
        $b.click()
    endif
next

I know it's the button id 100% sure but it doesnt click it for some reason? am i wrong in the code or ? 

###EDIT: Forgot to mention im trying to make it click on the object / id , it finds .. :P###

 

A example on how the code should be deeply appreciatet.

 

Dequality.

Edited by Dequality

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...