Add files via upload

This commit is contained in:
David Rotermund 2023-05-13 18:27:28 +02:00 committed by GitHub
parent 69e5cbd4c6
commit a7afcb4b30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,4 @@
{ {
"lable_for_source_code_button": "Quellcode" "lable_for_source_code_button": "Quellcode",
"end_state_button_class": "cke_button_on"
} }

View file

@ -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