问题描述
数据猎人,你好,我正在尝试从“job.ch”中抓取数据,我向空字段传递了两个参数,如下面的代码所示,但按钮仍然始终无法点击,即使我尝试使用所有方式 send_key(),send_key() 也有 submit() 而不是 click() 。
function main(splash,args)
splash.private_mode_enabled = false
assert(splash:go(args.url))
assert(splash:wait(3))
input_job = assert(splash:select("#synonym-typeahead-text-field"))
input_job:send_text("software developer")
input_region = assert(splash:select("#location-typeahead-text-field"))
input_region:send_text("Region of Fribourg")
assert(splash:wait(3))
btn = assert(splash:select("span.sc-fzqNJr.StateButton__ButtonContentContainer-sc-7p394w-0.jXVtAy"))
btn:mouse_click()
assert(splash:wait(5))
return {
html = splash:HTML(),png = splash:png(),har = splash:har(),}
end
瞧代码源
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)