tests: fix get_element_center for chrome update