Jump to content
bluebug

Automation WebPage

Recommended Posts

bluebug

Hi guys,

I need a help, i have a problem to do automation in following  code html:

 

<input type="text" size="20" autocomplete="off" id="ext-comp-1001" name="username" class=" x-form-text x-form-field  x-form-invalid" style="width: 112px;">

 

<input type="password" size="20" autocomplete="off" id="ext-comp-1002" name="password" class=" x-form-text x-form-field  x-form-invalid" style="width: 112px;">

 

My Code in autoit:

 

#include<IE.au3>

$oIE = _IECreate("http://zero0679.comule.com/SimpleForm.php")

$Name = _IEGetObjById($oIE, "ext-comp-1001")
$Email = _IEGetObjById($oIE, "ext-comp-1002")


_IEPropertySet($Name, 'innerText', 'Henry')
_IEPropertySet($Email, 'innerText', 'Henry@gmail.com')

But does not work.

Do can you help me?

 

web.au3

Share this post


Link to post
Share on other sites
bluebug

Does not work :(, this is a page have dynamic id.

Web pages with dynamic id can create this errors?

Share this post


Link to post
Share on other sites
Anoop

So you are getting error when loading the website initially itself. Try to solve it first.

  • Like 1

Share this post


Link to post
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

×