Stilgar Posted November 4, 2009 Author Posted November 4, 2009 Updated to V0.5.3.10bLook at the first post for changes, please. jEdit4AutoIt PlanMaker_UDF
cypher175 Posted November 8, 2009 Posted November 8, 2009 @ Stilgar: How would i get the url of an iframe..?? or click a button thats inside an iframe..??
Stilgar Posted November 8, 2009 Author Posted November 8, 2009 @ Stilgar: How would i get the url of an iframe..?? or click a button thats inside an iframe..?? Example: #include <FF.au3> If _FFConnect() Then _FFOpenURL("http://de.selfhtml.org/html/frames/anzeige/iframe.htm") _FFFrameEnter(0) ; change to frame 0 - now all following functions working in this frame MsgBox(0,"", _FFCmd(".location.href") ) _FFLinkClick("/weblog/") _FFFrameLeave() EndIf jEdit4AutoIt PlanMaker_UDF
Danp2 Posted November 8, 2009 Posted November 8, 2009 @Stilgar: Have you had a chance to review the modified code I sent you? Latest Webdriver UDF Release Webdriver Wiki FAQs
cypher175 Posted November 9, 2009 Posted November 9, 2009 Example: #include <FF.au3> If _FFConnect() Then _FFOpenURL("http://de.selfhtml.org/html/frames/anzeige/iframe.htm") _FFFrameEnter(0) ; change to frame 0 - now all following functions working in this frame MsgBox(0,"", _FFCmd(".location.href") ) _FFLinkClick("/weblog/") _FFFrameLeave() EndIf OK, so on the site im trying it on, I can enter the frame successfully, but when I try to do this: MsgBox(0,"", _FFCmd(".location.href") ) I'm getting a "_FFCmd_Err" window ..?? Is this the only way to get the URL of the iframe..??
LOULOU Posted November 9, 2009 Posted November 9, 2009 Example: #include <FF.au3> If _FFConnect() Then _FFOpenURL("http://de.selfhtml.org/html/frames/anzeige/iframe.htm") _FFFrameEnter(0) ; change to frame 0 - now all following functions working in this frame MsgBox(0,"", _FFCmd(".location.href") ) _FFLinkClick("/weblog/") _FFFrameLeave() EndIf For My way with this configuration : _FFConnect: OS: WIN_XP WIN32_NT 2600 Service Pack 3 French _FFConnect: AutoIt: 3.3.1.5 _FFConnect: FF.au3: 0.6.0.0b-4 ; Last test version This example works well
devilman16 Posted November 11, 2009 Posted November 11, 2009 (edited) Hi,probably I am making something wrong, but _FFPrefSet is not working for me.I have Firefox 3.5.5 with MozRepl 1.0.0.2009041717 and FF.au3 0.5.3.10bI can use _FFLinkClick, _FFXPath and so on without any problem, but if i want to change the settings of FF with _FFPrefSet than I always get the error:_FFPrefSet("network.proxy.http", "localhost") __FFSend ==> Socket Error _FFCmd ==> Error return value _FFPrefSet ==> Invalid value: network.proxy.httpalso this fails for me:_FFPrefSet("browser.download.manager.closeWhenDone","true") _FFPrefSet("browser.download.useDownloadDir","true")Someone has a tipp for me?brdevilmanEDITok found the error by myself, first _FFStart("url") or _FFConnect() then its working /EDIT Edited November 11, 2009 by devilman16
Stilgar Posted November 12, 2009 Author Posted November 12, 2009 @DanP2: Yes, I have. I tell you more if I have more time. --- @cypher175: Have you an example or the source of the web-page, please? --- also this fails for me: _FFPrefSet("browser.download.manager.closeWhenDone","true") _FFPrefSet("browser.download.useDownloadDir","true") You must use the the right datatypes for the prefs. In your example you are using strings instead of boolean: _FFPrefSet("browser.download.useDownloadDir", True) jEdit4AutoIt PlanMaker_UDF
d0n Posted November 18, 2009 Posted November 18, 2009 which function should i be looking at to get the current URL of the active tab in Firefox? i tried _FFWindowSelect and couldn't get it to work and where can i see the examples from these functions, can't seem to find it :S
LOULOU Posted November 18, 2009 Posted November 18, 2009 which function should i be looking at to get the current URL of the active tab in Firefox? i tried _FFWindowSelect and couldn't get it to workand where can i see the examples from these functions, can't seem to find it :SHere you can do what you want _FFFrameEnter('Main','name')$url = _FFCmd('.location.href')_FFFrameLeave()
d0n Posted November 19, 2009 Posted November 19, 2009 it doesn't work for me #include <FF.au3> _FFConnect() _FFFrameEnter('Main','name') $url = _FFCmd('.location.href') _FFFrameLeave() MsgBox("","",$url)
LOULOU Posted November 19, 2009 Posted November 19, 2009 it doesn't work for me #include <FF.au3> _FFConnect() _FFFrameEnter('Main','name') $url = _FFCmd('.location.href') _FFFrameLeave() MsgBox("","",$url) _FFFrameEnter('Main','name') 'Main" would be replace by the name of your frame Could you give the url of your website that i test it ?
d0n Posted November 19, 2009 Posted November 19, 2009 could you show an example using this site? because what i am trying to do is to scan whatever site i am on for .torrent files
Stilgar Posted November 19, 2009 Author Posted November 19, 2009 could you show an example using this site? because what i am trying to do is to scan whatever site i am on for .torrent files The url of the active tab is nothing more then: #include <FF.au3> _FFConnect() MsgBox(0,"", _FFCmd(".location.href") ) jEdit4AutoIt PlanMaker_UDF
Stilgar Posted November 19, 2009 Author Posted November 19, 2009 Updated to V0.6.0.0b-5. Look at the first post for changes, please. jEdit4AutoIt PlanMaker_UDF
d0n Posted November 19, 2009 Posted November 19, 2009 returns a blank msgbox using, updated to the latest version also #include <FF.au3> _FFConnect() MsgBox(0,"", _FFCmd(".location.href") )
Stilgar Posted November 19, 2009 Author Posted November 19, 2009 returns a blank msgbox using, updated to the latest version also #include <FF.au3> _FFConnect() MsgBox(0,"", _FFCmd(".location.href") ) Can you show me the output of your editor-console, please? jEdit4AutoIt PlanMaker_UDF
d0n Posted November 19, 2009 Posted November 19, 2009 _FFConnect: OS: WIN_XP WIN32_NT 2600 Service Pack 2 _FFConnect: AutoIt: 3.3.0.0 _FFConnect: FF.au3: 0.6.0.0b-5 _FFConnect: IP: 127.0.0.1 _FFConnect: Port: 4242 _FFConnect: Delay: 2ms _FFConnect ==> Timeout: TCPConnect Error: 10061 _FFConnect ==> General Error: Timeout: Can not connect to FireFox/MozRepl on: 127.0.0.1:4242 __FFSend ==> Socket Error _FFCmd ==> Error return value
Stilgar Posted November 19, 2009 Author Posted November 19, 2009 (edited) _FFConnect: OS: WIN_XP WIN32_NT 2600 Service Pack 2 _FFConnect: AutoIt: 3.3.0.0 _FFConnect: FF.au3: 0.6.0.0b-5 _FFConnect: IP: 127.0.0.1 _FFConnect: Port: 4242 _FFConnect: Delay: 2ms _FFConnect ==> Timeout: TCPConnect Error: 10061 _FFConnect ==> General Error: Timeout: Can not connect to FireFox/MozRepl on: 127.0.0.1:4242 __FFSend ==> Socket Error _FFCmd ==> Error return value Seems like MozRepl is not activated and/or installed, or a firewall blocks the communication. Edited November 19, 2009 by Stilgar jEdit4AutoIt PlanMaker_UDF
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