Jump to content

Recommended Posts

Posted

I need to insert some text in the inputfield on a website, as you can see it has no ID, no name, just a class, so i'm really not sure how It's possible to insert text into the field.

Does anyone have a good idea? :) 

sd.PNG

Posted

I tried this, witch grabs the inner text, but the field has no text, how would I use it with the classname?:)

#include <IE.au3>

Local $oIE = _IECreate("http://url.com", 1)
sleep(10000)
_IELoadWait($oIE)
Local $oNavs = _IETagNameGetCollection($oIE, "div")
For $oNav In $oNavs
   $oLinks = _IETagNameGetCollection($oNav, "a")
   For $oLink In $oLinks
      MsgBox("", "", $oLink.InnerText)
   Next
Next

 

Posted (edited)

@legend

#include <IE.au3>

Local $oIE = _IECreate("http://url.com", 1)
sleep(10000) ; You don't need this if you use _IELoadWait.
_IELoadWait($oIE)
Local $oNavs = _IETagNameGetCollection($oIE, "div")
For $oNav In $oNavs
   $oLinks = _IETagNameGetCollection($oNav, "a")
   For $oLink In $oLinks
      MsgBox("", "", $oLink.className)
   Next
Next

:)

Edited by FrancescoDiMuro

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

Posted (edited)

thanks :) that way I can click it, _IEAction($oLink, "click")

How would I insert some text to the class? :)

Edited by legend

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