Я изучаю всплеск, у меня есть упражнение. Я хочу посетить https://www.iana.org/domains/reserved, нажав на текстовое поле адреса в https://www.example.com/. Но он не может вернуть iana.orghtml, он возвращает только example.com html.У меня есть следующий код Луа:
lua_script = '''function main(splash, args)
splash.private_mode_enabled = false
local url = splash.args.url
assert(splash:go(url))
assert(splash:wait(2))
local alinks = splash:select('body > div > p:nth-child(3)')
local bounds = alinks:bounds()
assert(alinks:mouse_click{x=bounds.width/2, y=bounds.height/2})
assert(splash:wait(2))
return {
tml = splash:html(),
}
end
'''