Scrapy Splash Button 不会被点击

问题描述

数据猎人,你好,我正在尝试从“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

the result still always like that

代码

source code

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...