Jump to content
Sign in to follow this  
sambalec

FF.au3, How to click on a page link with text search ?

Recommended Posts

sambalec

Hello ! :D

On a web page, i want to use a FF.au3 fonction to click on a link who called "Login Now", how can I do ?

Thanks a lot !

Share this post


Link to post
Share on other sites
sambalec

Many thanks Stilgar ! You're a very good man ! :D

And thank you for your very fast help and for this script, wonderfull script !

Function is good, the click works but a Login popup appears and others fonctions doesn't work on this popup, how can I configure FF.au3 functions on the popup after appearance ?

Sambalec

Edited by sambalec

Share this post


Link to post
Share on other sites
sambalec

I found a small bug with this url : http://00.netcourrier.com/, function doesn't load on firefox... why ?

CODE
#include <FF.au3>

_FFStart("http://www.google.fr")

If _FFConnect() Then

If _FFOpenURL("http://www.google.fr") Then

Sleep(500)

_FFOpenURL("http://lol.netcourrier.com")

Sleep(500)

_FFOpenURL("http://00.netcourrier.com/")

EndIf

Else

MsgBox(64,"Error","Can't connect to FireFox")

EndIf

I think that the problem caused by 00 after http://. An idea to resolve it ? :D

Edited by sambalec

Share this post


Link to post
Share on other sites
Stilgar

Just for information (solutions depending on chat)

To work on a popup-window:

_FFStart()

If _FFIsConnected() Then
    _FFOpenURL("http://...../")
    _FFClickLink("Ajouter un commentaire","text")
    ;popup appears...
    WinWaitActive("Se connecter","",5)
    _FFWindowSelect() ; selects the last opened window from FF
        _FFLoadWait()
        _FFSetValueByName("need_login_form_login","test")
        ; ....
    _FFWindowClose() ; if it's not closed
    ; ... working again on the "main" window
EndIf

If _FFOpenURL doesn't work, you can use _FFCmd(".location.href='http://...'") instead.

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  

×