unibrementypo3auto/content/get_xy_tab.py
2023-05-17 17:43:35 +02:00

23 lines
742 B
Python

from selenium import webdriver
from content.press_wizzard_button import press_wizzard_button
from content.get_list_wizard_sections import get_list_wizard_sections
from content.set_wizard_section import set_wizard_section
from content.get_list_wizard_sections_tools import get_list_wizard_sections_tools
import time
def get_xy_tab(driver: webdriver.firefox.webdriver.WebDriver):
press_wizzard_button(driver)
_, labels = get_list_wizard_sections(driver)
raster_tools: str = labels[-1]
raster_tool_id_tabs: int = 3
set_wizard_section(driver, raster_tools)
center_x, center_y, _, _ = get_list_wizard_sections_tools(driver)
x = center_x[raster_tool_id_tabs]
y = center_y[raster_tool_id_tabs]
return x, y