Jump to content

Need help with .document.get


Recommended Posts

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
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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