File tree Expand file tree Collapse file tree
src/main/kotlin/xyz/cssxsh Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # 2.6.0(24/04/27)
2+
3+ 1 . fix: npm mirror
4+ 2 . update: commons-compress 1.26.1
5+ 3 . update: selenium-java 4.20.0
6+
17# 2.5.1(23/09/08)
28
3- 1 . feat: setup chrome command
9+ 1 . feat: setup chrome command
410
511# 2.5.0 (23/08/12)
612
Original file line number Diff line number Diff line change 22
33> Mirai Selenium 前置插件
44
5- Mirai-Console的前置插件,用于使用Selenium调用浏览器进行截图等
5+ Mirai-Console 的前置插件,用于使用 Selenium 调用浏览器进行截图等
66
77[ ![ maven-central] ( https://img.shields.io/maven-central/v/xyz.cssxsh.mirai/mirai-selenium-plugin )] ( https://search.maven.org/artifact/xyz.cssxsh.mirai/mirai-selenium-plugin )
8- [ ![ Setup] ( https://github.com/cssxsh/mirai-selenium-plugin/actions/workflows/setup.yml/badge.svg?branch=master )] ( https://github.com/cssxsh/mirai-selenium-plugin/actions/workflows/setup.yml )
8+ [ ![ Setup and Build ] ( https://github.com/cssxsh/mirai-selenium-plugin/actions/workflows/setup.yml/badge.svg )] ( https://github.com/cssxsh/mirai-selenium-plugin/actions/workflows/setup.yml )
99[ ![ Codacy Badge] ( https://app.codacy.com/project/badge/Grade/2ac22c6b3f4a4ce5a205971ad0e53412 )] ( https://www.codacy.com/gh/cssxsh/mirai-selenium-plugin/dashboard?utm_source=github.com& ; utm_medium=referral& ; utm_content=cssxsh/mirai-selenium-plugin& ; utm_campaign=Badge_Grade )
1010
1111## 运行平台支持
1212
1313| OS | Browser | Driver | Setup |
1414| :-------:| :-------:| :------:| :-----:|
1515| Windows | Chrome | Yes | Yes |
16- | Windows | Firefox | Yes | Yes |
16+ | Windows | Firefox | Yes | No |
1717| Windows | Edge | Yes | ~ |
1818| Linux | Chrome | Yes | Yes |
1919| Linux | Firefox | Yes | Yes |
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ plugins {
88}
99
1010group = " xyz.cssxsh.mirai"
11- version = " 2.5.1 "
11+ version = " 2.6.0 "
1212
1313mavenCentralPublish {
1414 useCentralS01()
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public object MiraiSeleniumPlugin : KotlinPlugin(
2121 JvmPluginDescription (
2222 id = "xyz.cssxsh.mirai.plugin.mirai-selenium-plugin",
2323 name = "mirai-selenium-plugin",
24- version = "2.5.1 "
24+ version = "2.6.0 "
2525 ) {
2626 author("cssxsh")
2727 }
Original file line number Diff line number Diff line change @@ -37,31 +37,25 @@ internal val SeleniumLogger: Logger = Logger.getLogger("org.openqa.selenium")
3737
3838// region RemoteWebDriver
3939
40+ /* *
41+ * @see org.openqa.selenium.remote.service.DriverService.process
42+ * @see org.openqa.selenium.os.ExternalProcess.process
43+ */
4044@Suppress(" INVISIBLE_REFERENCE" , " INVISIBLE_MEMBER" )
4145internal fun DriverService.getProcess (): Process ? {
42- /* *
43- * @see org.openqa.selenium.remote.service.DriverService.process
44- */
4546 val external = DriverService ::class .java.getDeclaredField(" process" )
4647 .apply { isAccessible = true }.get(this ) ? : return null
47-
48- /* *
49- * @see org.openqa.selenium.os.ExternalProcess.process
50- */
5148 return external::class .java.getDeclaredField(" process" )
5249 .apply { isAccessible = true }.get(external) as ? Process
5350}
5451
52+ /* *
53+ * @see org.openqa.selenium.remote.RemoteWebDriver.executor
54+ * @see org.openqa.selenium.remote.HttpCommandExecutor.httpClientFactory
55+ */
5556internal fun RemoteWebDriver.getHttpClientFactory (): HttpClient .Factory ? {
56- /* *
57- * @see org.openqa.selenium.remote.RemoteWebDriver.executor
58- */
5957 val executor = RemoteWebDriver ::class .java.getDeclaredField(" executor" )
6058 .apply { isAccessible = true }.get(this ) ? : return null
61-
62- /* *
63- * @see org.openqa.selenium.remote.HttpCommandExecutor.httpClientFactory
64- */
6559 return HttpCommandExecutor ::class .java.getDeclaredField(" httpClientFactory" )
6660 .apply { isAccessible = true }.get(executor) as ? HttpClient .Factory
6761}
You can’t perform that action at this time.
0 commit comments