Add files via upload
This commit is contained in:
parent
69e5cbd4c6
commit
a7afcb4b30
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
"lable_for_source_code_button": "Quellcode"
|
"lable_for_source_code_button": "Quellcode",
|
||||||
|
"end_state_button_class": "cke_button_on"
|
||||||
}
|
}
|
|
@ -15,5 +15,11 @@ def press_sourcecode_button(driver: webdriver.firefox.webdriver.WebDriver):
|
||||||
for i in found_element_list:
|
for i in found_element_list:
|
||||||
temp_str = str(i.get_dom_attribute("title"))
|
temp_str = str(i.get_dom_attribute("title"))
|
||||||
if temp_str.find(string_dict["lable_for_source_code_button"]) != -1:
|
if temp_str.find(string_dict["lable_for_source_code_button"]) != -1:
|
||||||
i.click()
|
while (
|
||||||
|
str(i.get_dom_attribute("class")).find(
|
||||||
|
string_dict["end_state_button_class"]
|
||||||
|
)
|
||||||
|
== -1
|
||||||
|
):
|
||||||
|
i.click()
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue