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) 

    1 answer 1

    I will answer myself. Dig here. Go to the page, parse all the attributes (In this case, id). And so on each page. If anyone needs more detail on the subject, write, tell.)

      def test_locat(self): driver = self.driver driver.get('https://............') ids = driver.find_elements_by_xpath('//*[@id]') for ii in ids: print(ii.get_attribute('id'))