ai.platon.pulsar.tools.OpenChrome.kt Maven / Gradle / Ivy
The newest version!
package ai.platon.pulsar.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")
driver.navigateTo("https://www.amazon.in")
}
readlnOrNull()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy