質問編集履歴
2
ソースコード更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -41,10 +41,6 @@
|
|
41
41
|
|
42
42
|
|
43
43
|
```ここに言語名を入力
|
44
|
-
|
45
|
-
python
|
46
|
-
|
47
|
-
```
|
48
44
|
|
49
45
|
# coding:utf-8
|
50
46
|
|
@@ -92,6 +88,10 @@
|
|
92
88
|
|
93
89
|
time.sleep(3)
|
94
90
|
|
91
|
+
```
|
92
|
+
|
93
|
+
|
94
|
+
|
95
95
|
### 試したこと
|
96
96
|
|
97
97
|
|
1
ソースコード更新
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,7 +46,51 @@
|
|
46
46
|
|
47
47
|
```
|
48
48
|
|
49
|
+
# coding:utf-8
|
49
50
|
|
51
|
+
from appium import webdriver
|
52
|
+
|
53
|
+
from selenium import webdriver
|
54
|
+
|
55
|
+
from selenium.webdriver.common.keys import Keys
|
56
|
+
|
57
|
+
import time
|
58
|
+
|
59
|
+
from selenium.webdriver.support.select import Select
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
# 説明②
|
64
|
+
|
65
|
+
desired_caps = {}
|
66
|
+
|
67
|
+
desired_caps['app'] = '***.exe'
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
# 説明③
|
72
|
+
|
73
|
+
driver = webdriver.Remote(
|
74
|
+
|
75
|
+
command_executor='http://127.0.0.1:4723',
|
76
|
+
|
77
|
+
desired_capabilities= desired_caps)
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
time.sleep(1)
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
bfcnet = driver.find_element_by_class_name('WindowsForms10.Window.8.app.0.141b42a_r7_ad1')
|
86
|
+
|
87
|
+
print(bfcnet)
|
88
|
+
|
89
|
+
bfcnet.find_element_by_class_name('WindowsForms10.EDIT.app.0.141b42a_r7_ad1').send_keys('*****')
|
90
|
+
|
91
|
+
bfcnet.find_element_by_class_name('WindowsForms10.BUTTON.app.0.141b42a_r7_ad1').click()
|
92
|
+
|
93
|
+
time.sleep(3)
|
50
94
|
|
51
95
|
### 試したこと
|
52
96
|
|