Jump to content
Sign in to follow this  
notsure

IE > Unnamed elements

Recommended Posts

notsure

Dear users,

I'm experiencing some troubles with a webpage which has a button to change some stuff. Now the source looks like this :

<input type="button" class="Button Edit" value="Change" onclick="enableForm();"/>

I also cant get the [button-Instance:1] because its in an iFrame, so i can only select the whole frame. Also the form does not have a name so i do this with get collection. I could do it with elementgetcollection but then im busy for years to find out which elementnumber the button is.

Is there any way to do this otherwise?

Any help appreciated. Java sucks when using IE UDF >_<

Share this post


Link to post
Share on other sites
jvanegmond

You didn't state what you were trying to accomplish, only what you are trying.

Share this post


Link to post
Share on other sites
notsure

Oh sorry, i'm trying to hit the button, click it. Submit it.. but it isnt a "submit-class" button >_

Share this post


Link to post
Share on other sites
jvanegmond

You could try:

_IENavigate($oIFrame, "javascript:enableForm();");

Share this post


Link to post
Share on other sites
notsure

You could try:

_IENavigate($oIFrame, "javascript:enableForm();");

Works to unlock the form but after that my script hangs and won't do anything after that link. To attach the IE again doesnt work either. To search the collection again wont work. Nothing, the whole script hangs lol.

hmm

But thanks for this!

Share this post


Link to post
Share on other sites
jvanegmond

Sorry, try to to set the "Load wait" setting of the _IENavigate function to 0. I think your script is waiting for the page to complete the navigation, but there is no navigation so it never happens.

Share this post


Link to post
Share on other sites
notsure

Ah yes, this works. I thought that IEnavigate did not have a loadwait function, i thought the formsubmit was the only function with that.

Tanks alot

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
Sign in to follow this  

×