But i can't get it to work. I found an example but it uses getElementsByid. But this not present on this site. I have tried getElementByclassName and getElementByTagName, but i can't get it to work.
for some reason i can't put in de url in the topic, it's reported as a broken link.
hope someone can help me..
thans in advance
Famko
site elements
Code: Select all
<form class="pure-form SoftSearchForm__group-medium SoftSearchForm__group" action="/search-soft" data-reactid=".f4xndwkga0.0.1.0.$=12.$=10.$=11.0.$=11.$=10.$=11"><input name="query" class="SoftSearchForm__input" type="text" placeholder="Software or category name" value="" data-reactid=".f4xndwkga0.0.1.0.$=12.$=10.$=11.0.$=11.$=10.$=11.$=10" autocomplete="off"><span class="SoftSearchForm__btn-holder" data-reactid=".f4xndwkga0.0.1.0.$=12.$=10.$=11.0.$=11.$=10.$=11.$=11"><button class="SoftSearchForm__btn" type="submit" data-reactid=".f4xndwkga0.0.1.0.$=12.$=10.$=11.0.$=11.$=10.$=11.$=11.0"><span class="icon-search SoftSearchForm__icon" data-reactid=".f4xndwkga0.0.1.0.$=12.$=10.$=11.0.$=11.$=10.$=11.$=11.0.$=10"></span><span class="SoftSearchForm__btn-text" data-reactid=".f4xndwkga0.0.1.0.$=12.$=10.$=11.0.$=11.$=10.$=11.$=11.0.$=11">Find</span></button></span></form>
<span class="SoftSearchForm__btn-holder" data-reactid=".f4xndwkga0.0.1.0.$=12.$=10.$=11.0.$=11.$=10.$=11.$=11"><button class="SoftSearchForm__btn" type="submit" data-reactid=".f4xndwkga0.0.1.0.$=12.$=10.$=11.0.$=11.$=10.$=11.$=11.0"><span class="icon-search SoftSearchForm__icon" data-reactid=".f4xndwkga0.0.1.0.$=12.$=10.$=11.0.$=11.$=10.$=11.$=11.0.$=10"></span><span class="SoftSearchForm__btn-text" data-reactid=".f4xndwkga0.0.1.0.$=12.$=10.$=11.0.$=11.$=10.$=11.$=11.0.$=11">Find</span></button></span>
Code: Select all
seachdriver := "PCI\VEN_8086&DEV_1E3A&SUBSYS_08061025&REV_04"
URL :="https://drp.su/en/catalog-soft"
WB := ComObjCreate("InternetExplorer.Application")
WB.Visible := True
WB.Navigate(URL)
While wb.readyState != 4 || wb.document.readyState != "complete" || wb.busy ; wait for the page to load
Sleep, 10
wb.document.getElementByTagName("query").value := seachdriver
;wb.document.getElementByclassName("query").value := seachdriver
;wb.document.getElementsByTagName("SearchForm__btn")[1].Click()
While wb.readyState != 4 || wb.document.readyState != "complete" || wb.busy ; wait for the page to load
Sleep, 10
ExitApp
return