teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

ソースコード更新

2021/03/25 03:46

投稿

m____k
m____k

スコア1

title CHANGED
File without changes
body CHANGED
@@ -20,8 +20,6 @@
20
20
  ### 該当のソースコード
21
21
 
22
22
  ```ここに言語名を入力
23
- python
24
- ```
25
23
  # coding:utf-8
26
24
  from appium import webdriver
27
25
  from selenium import webdriver
@@ -45,6 +43,8 @@
45
43
  bfcnet.find_element_by_class_name('WindowsForms10.EDIT.app.0.141b42a_r7_ad1').send_keys('*****')
46
44
  bfcnet.find_element_by_class_name('WindowsForms10.BUTTON.app.0.141b42a_r7_ad1').click()
47
45
  time.sleep(3)
46
+ ```
47
+
48
48
  ### 試したこと
49
49
 
50
50
  ここに問題に対して試したことを記載してください。

1

ソースコード更新

2021/03/25 03:46

投稿

m____k
m____k

スコア1

title CHANGED
File without changes
body CHANGED
@@ -22,7 +22,29 @@
22
22
  ```ここに言語名を入力
23
23
  python
24
24
  ```
25
+ # coding:utf-8
26
+ from appium import webdriver
27
+ from selenium import webdriver
28
+ from selenium.webdriver.common.keys import Keys
29
+ import time
30
+ from selenium.webdriver.support.select import Select
25
31
 
32
+ # 説明②
33
+ desired_caps = {}
34
+ desired_caps['app'] = '***.exe'
35
+
36
+ # 説明③
37
+ driver = webdriver.Remote(
38
+ command_executor='http://127.0.0.1:4723',
39
+ desired_capabilities= desired_caps)
40
+
41
+ time.sleep(1)
42
+
43
+ bfcnet = driver.find_element_by_class_name('WindowsForms10.Window.8.app.0.141b42a_r7_ad1')
44
+ print(bfcnet)
45
+ bfcnet.find_element_by_class_name('WindowsForms10.EDIT.app.0.141b42a_r7_ad1').send_keys('*****')
46
+ bfcnet.find_element_by_class_name('WindowsForms10.BUTTON.app.0.141b42a_r7_ad1').click()
47
+ time.sleep(3)
26
48
  ### 試したこと
27
49
 
28
50
  ここに問題に対して試したことを記載してください。