help about chrom.ahk waitforload

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
ositoMalvado
Posts: 180
Joined: 24 Dec 2019, 12:02
Contact:

help about chrom.ahk waitforload

Post by ositoMalvado » 21 Nov 2021, 12:42

HEY GUYS I HAVE THIS CODE AND NEED HELP, pleaseee thankss :roll:

Code: Select all

ins_rus.evaluate("document.querySelector('#tablaCentralLogin > tbody > tr:nth-child(4) > td > input.botonInicio').click();")
;loging to my page
ins_rus.waitforload()
ins_rus.evaluate("document.querySelector('#z_d__e-label').click();")
;now an iframe appears  with first source clicked
ins_rus.waitforload()
ins_rus:=pag_rus.getPage()
;into new link there is a 'iframe' with many sources, i want to check when the source is load to do any function, alert for example
rus_frame:=ins_rus.evaluate("document.getElementById('z_d__t4')")
rus_frame.addEventListener("load", "function() {alert('test');}")
;it is not working, is it the correct way? sorry for my poor english
My WEB some useful stuff

Return to “Ask for Help (v1)”