Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Trivago with _ff.au3

$
0
0

Hey guys,

 

I'm trying to do a search with Firefox / _ff.au3 at trivago.de (.com)

The click on the Search-Button works fine, but the search string is not recognized. Do you have any idea?

If I send the Hotelname "Adlon Berlin" with ControlSend to the Window-handle ($h1) it works, but sometimes the search string is in the adressbar or somewhere else...

 

#include <FF.au3>

 

Local $url=""

 

_FFStart("http://www.trivago.de","default", 2)

$h1 = _FFWindowGetHandle()

WinActivate($h1)

WinSetState($h1,"",@SW_MAXIMIZE)

_FFSetValue("Adlon Berlin", "df_query_input", "class")

_FFCmd("window.content.document.getElementsByClassName('df_btn_search')[0].click()")

Sleep(3000)

_FFSetValue("Adlon Berlin", "df_query_input", "class")

_FFCmd("window.content.document.getElementsByClassName('df_btn_search')[0].click()")

$url = _FFCmd(".location.href")

MsgBox(0,"URL",$url)

 

Best regards,

Hank


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>