Colleagues, good. There is an option to obtain and compare coordinates for specific xpath. Sdes need to go to the page and collect EVERYTHING. Tell me. where to dig. ideally with an example. here is the code specific. Tools: Python Selenium
def check_location(self, el_xpath, bloc_name, element_dict): kards = self.driver.find_element_by_xpath(el_xpath).text assert kards == bloc_name, 'Элемент не найден' kar = self.driver.find_element_by_xpath(el_xpath) location = kar.location size = kar.size print(location) print(size) for i in element_dict: if element_dict == location: print('Элементы равны') else: print('элементы не равны') def test_locator(self): driver = self.driver driver.get('https://.....') dict1 = {'x': 262, 'y': 81} self.check_location("//a[text()='Текст']", 'Текст', dict1)