ai.platon.pulsar.examples.sites.tools.OpenChrome.kt Maven / Gradle / Ivy
The newest version!
package ai.platon.pulsar.examples.sites.tools
import ai.platon.pulsar.skeleton.crawl.fetch.privacy.BrowserId
import ai.platon.pulsar.protocol.browser.driver.WebDriverFactory
import ai.platon.pulsar.ql.context.SQLContexts
import kotlinx.coroutines.runBlocking
fun main() {
val driver = SQLContexts.create().getBean(WebDriverFactory::class).launchBrowser(BrowserId.PROTOTYPE).newDriver()
runBlocking {
driver.navigateTo("about:blank")
}
readLine()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy