質問編集履歴
1
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
gettext =
|
31
|
+
gettext = value.find_element_by_link_text("テキスト").get_attribute("href")
|
32
32
|
|
33
33
|
File "/root/.pyenv/versions/3.7.2/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 241, in find_element_by_link_text
|
34
34
|
|
@@ -62,7 +62,7 @@
|
|
62
62
|
|
63
63
|
|
64
64
|
|
65
|
-
gettext =
|
65
|
+
gettext = value.find_element_by_link_text("テキスト").get_attribute("href")
|
66
66
|
|
67
67
|
print(gettext)
|
68
68
|
|
@@ -72,9 +72,9 @@
|
|
72
72
|
|
73
73
|
|
74
74
|
|
75
|
-
if
|
75
|
+
if value.find_element_by_link_text("テキスト").get_attribute("href"):
|
76
76
|
|
77
|
-
gettext =
|
77
|
+
gettext = value.find_element_by_link_text("テキスト").get_attribute("href")
|
78
78
|
|
79
79
|
print(gettext)
|
80
80
|
|