PcExpert Posted January 17, 2008 Author Share Posted January 17, 2008 (edited) The problem seems to be gone now. But there's another problem:Page source:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Bendes | Neem jij de macht over?</title><meta name="author" content="Bendes"/><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><link rel="stylesheet" type="text/css" href="http://www.bendes.nl/img/layout/style.css" /><script type="text/javascript">//bgcolor="#808080"function klap (klapvar){document.getElementById (klapvar).style.display = "inline";}function meter(element, procent) {document.getElementById(element + 'val').value = procent;document.getElementById(element).style.width = procent + '%'; }function zeker(devar){if (confirm("Weet je het zeker?")){window.location = "http://www.bendes.nl/" + devar;}else{alert ("Nee");} }function openChat(){window.open("http://flash.bribble.com/group.html?port=3...=735,height=535");}function openWin(){window.open("http://www.bendes.nl/plugins/gokkast/index...=400,height=540");}function wc(){if(c>-1){document.getElementById("dl").innerHTML = c;c = c - 1;setTimeout("wc()", 1000)} }</script></head><body><div id="pattern"><div id="container"><div id="header"><h1>Bendes</h1><h2>Neem jij de macht over?</h2><div id="stats"><div style="margin-left: 120px; position: absolute;"><a href="http://www.bendes.nl/?go=bewerkprofiel">Profiel aanpassen</a></li><li><a href="http://www.bendes.nl/?go=vrienden">Vrienden toevoegen</a></li></ul><h3><img src="http://www.bendes.nl/img/layout/misdaad.jpg" alt="" /><span>Misdaad</span></h3><ul><li><a href="http://www.bendes.nl/?go=scooter">Scooter stelen</a></li><li><a href="http://www.bendes.nl/?go=misdaad">Echte misdaad</a></li><li><a href="http://www.bendes.nl/?go=misdaadmelden">Meldt Misdaad</a></li></ul><h3><img src="http://www.bendes.nl/img/layout/geld.jpg" alt="" /><span>Geld</span></h3><ul><li><a href="http://www.bendes.nl/?go=gangsterwerk">Werk als gangster</a></li><li><a href="http://www.bendes.nl/?go=filmprijzen">Film prijzen</a></li></ul><h3><img src="http://www.bendes.nl/img/layout/bendesgrijs.jpg" alt="" /><span>Families</span></h3><ul><li><a href="http://www.bendes.nl/?go=bendes&bende=...1">Mijn bende</a></li><li><a href="http://www.bendes.nl/?go=prikbord&subf...">Bende forum <span class="tip">nieuw</span></a></li><li><a href="http://www.bendes.nl/?go=bendes&bactie...">Bende verlaten</a></li><li><a href="http://www.bendes.nl/?go=bendes&bactie...">Rijke bendes</a></li><li><a href="http://www.bendes.nl/?go=bendes&bactie...m">Arme Bendes</a></li></ul><ul><li><a href="http://www.bendes.nl/?go=top&type=rang">Top 50 Rang</a></li><li><a href="http://www.bendes.nl/?go=huisdieren">Huisdieren <span class="tip">testen</span></a></li><li><a href="http://www.bendes.nl/?go=top&type=huisdier">Top 10 huisdieren</a></li></ul></div><div class="clear"></div></div><div id="footerspacer"></div><div id="footer"><span>Copyright © 2007 - Bendes.nl | All Rights Reserved. Design by R&B. Hosted by <a href="http://www.xunasolutions.nl" target="_BLANK">Xuna</a></span></div></div><script src="urchin-stats.js" type="text/javascript"></script><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-1776817-2";urchinTracker();</script></body></html>At this page there's a button with the text ' push!' , i need to click it repeaditly. But as you can see, the button calls a javascript function:<input style="width: 242px;" type="button" value="push!" onclick="pushpush();">But can I still click the button? If yes, how? The button has no name. Thanks! Edited January 17, 2008 by PcExpert Link to comment Share on other sites More sharing options...
Danp2 Posted January 17, 2008 Share Posted January 17, 2008 Isn't this a repeat of the message you posted earlier in the thread? Have you taken a look at _IEAction? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
DaleHohm Posted January 17, 2008 Share Posted January 17, 2008 You've been around here too long to act so lost and helpless. Your newcommer's grace period is over. If you want help, show that you are learning something from all of the time others have given you. Show your code, show error messages and look at my sig to see why "didn't work" is such a bad problem description (and then answer the associated questions). As long as you ignore advice you are given and look for the easy way out you'll not get much help - particularly from me. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
PcExpert Posted January 18, 2008 Author Share Posted January 18, 2008 Ofcourse I'm learning! The problem is that the button doesnt have a name and that i'm not aware of any way to discover the name of the button. Link to comment Share on other sites More sharing options...
DaleHohm Posted January 18, 2008 Share Posted January 18, 2008 Ofcourse I'm learning! The problem is that the button doesnt have a name and that i'm not aware of any way to discover the name of the button.This is from code you posted as yours earlier in this thread:$myButton = _IEFormElementGetCollection ($oForm, 2)_IEAction( $myButton, "click")Which is exactly the technique you need to use - which is why my response was to do it the same way you did it the last time.Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble 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