Webot is a web robot EDSL base on scala.
- Chrome
- Chrome Driver
- JDK
- Scala
- Ammonite
Use ammonite-repl to run the scripts blow:
import $ivy.`com.github.zhongl:webot_2.13:latest.release`, webot.dsl._, selenium._
open("https://baidu.com") apply {
for {
_ <- a("#kw") apply input("github")
suggestions <- all("li.bdsug-overflow") get text
} yield output(suggestions)
}