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