File tree Expand file tree Collapse file tree 5 files changed +20
-20
lines changed
src/main/kotlin/xyz/cssxsh Expand file tree Collapse file tree 5 files changed +20
-20
lines changed 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
+
1
7
# 2.5.1(23/09/08)
2
8
3
- 1 . feat: setup chrome command
9
+ 1 . feat: setup chrome command
4
10
5
11
# 2.5.0 (23/08/12)
6
12
Original file line number Diff line number Diff line change 2
2
3
3
> Mirai Selenium 前置插件
4
4
5
- Mirai-Console的前置插件,用于使用Selenium调用浏览器进行截图等
5
+ Mirai-Console 的前置插件,用于使用 Selenium 调用浏览器进行截图等
6
6
7
7
[ ![ 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 )
9
9
[ ![ 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 )
10
10
11
11
## 运行平台支持
12
12
13
13
| OS | Browser | Driver | Setup |
14
14
| :-------:| :-------:| :------:| :-----:|
15
15
| Windows | Chrome | Yes | Yes |
16
- | Windows | Firefox | Yes | Yes |
16
+ | Windows | Firefox | Yes | No |
17
17
| Windows | Edge | Yes | ~ |
18
18
| Linux | Chrome | Yes | Yes |
19
19
| Linux | Firefox | Yes | Yes |
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ plugins {
8
8
}
9
9
10
10
group = " xyz.cssxsh.mirai"
11
- version = " 2.5.1 "
11
+ version = " 2.6.0 "
12
12
13
13
mavenCentralPublish {
14
14
useCentralS01()
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public object MiraiSeleniumPlugin : KotlinPlugin(
21
21
JvmPluginDescription (
22
22
id = "xyz.cssxsh.mirai.plugin.mirai-selenium-plugin",
23
23
name = "mirai-selenium-plugin",
24
- version = "2.5.1 "
24
+ version = "2.6.0 "
25
25
) {
26
26
author("cssxsh")
27
27
}
Original file line number Diff line number Diff line change @@ -37,31 +37,25 @@ internal val SeleniumLogger: Logger = Logger.getLogger("org.openqa.selenium")
37
37
38
38
// region RemoteWebDriver
39
39
40
+ /* *
41
+ * @see org.openqa.selenium.remote.service.DriverService.process
42
+ * @see org.openqa.selenium.os.ExternalProcess.process
43
+ */
40
44
@Suppress(" INVISIBLE_REFERENCE" , " INVISIBLE_MEMBER" )
41
45
internal fun DriverService.getProcess (): Process ? {
42
- /* *
43
- * @see org.openqa.selenium.remote.service.DriverService.process
44
- */
45
46
val external = DriverService ::class .java.getDeclaredField(" process" )
46
47
.apply { isAccessible = true }.get(this ) ? : return null
47
-
48
- /* *
49
- * @see org.openqa.selenium.os.ExternalProcess.process
50
- */
51
48
return external::class .java.getDeclaredField(" process" )
52
49
.apply { isAccessible = true }.get(external) as ? Process
53
50
}
54
51
52
+ /* *
53
+ * @see org.openqa.selenium.remote.RemoteWebDriver.executor
54
+ * @see org.openqa.selenium.remote.HttpCommandExecutor.httpClientFactory
55
+ */
55
56
internal fun RemoteWebDriver.getHttpClientFactory (): HttpClient .Factory ? {
56
- /* *
57
- * @see org.openqa.selenium.remote.RemoteWebDriver.executor
58
- */
59
57
val executor = RemoteWebDriver ::class .java.getDeclaredField(" executor" )
60
58
.apply { isAccessible = true }.get(this ) ? : return null
61
-
62
- /* *
63
- * @see org.openqa.selenium.remote.HttpCommandExecutor.httpClientFactory
64
- */
65
59
return HttpCommandExecutor ::class .java.getDeclaredField(" httpClientFactory" )
66
60
.apply { isAccessible = true }.get(executor) as ? HttpClient .Factory
67
61
}
You can’t perform that action at this time.
0 commit comments