notsure Posted August 14, 2009 Share Posted August 14, 2009 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 >_< Link to comment Share on other sites More sharing options...
jvanegmond Posted August 14, 2009 Share Posted August 14, 2009 You didn't state what you were trying to accomplish, only what you are trying. github.com/jvanegmond Link to comment Share on other sites More sharing options...
notsure Posted August 14, 2009 Author Share Posted August 14, 2009 Oh sorry, i'm trying to hit the button, click it. Submit it.. but it isnt a "submit-class" button >_ Link to comment Share on other sites More sharing options...
jvanegmond Posted August 14, 2009 Share Posted August 14, 2009 You could try: _IENavigate($oIFrame, "javascript:enableForm();"); github.com/jvanegmond Link to comment Share on other sites More sharing options...
notsure Posted August 14, 2009 Author Share Posted August 14, 2009 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.hmmBut thanks for this! Link to comment Share on other sites More sharing options...
jvanegmond Posted August 14, 2009 Share Posted August 14, 2009 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. github.com/jvanegmond Link to comment Share on other sites More sharing options...
notsure Posted August 14, 2009 Author Share Posted August 14, 2009 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now