I need to get feedbacks from site
Feedbacks are inside <iframe> tag, so I go to iframe, and i get feedbacks, from the first page, but then i need change page using button:
Selenium can find it by class or xpath, but when it tries to click it returns error
selenium.common.exceptions.WebDriverException: Message: unknown error: Element <iframe scrolling="no" frameborder="0" marginwidth="0" marginheight="0" width="100%" height="1943" src="//feedback.aliexpress.com/display/productEvaluation.htm?productId=1000003578539&ownerMemberId=825321852&companyId=&memberType=seller&startValidDate=" cd_frame_id_="9dbc34cc8793cee8fbcab5180296b0d6"></iframe> is not clickable at point (1001, 582). Other element would receive the click: <span data-role="show" class="show-history">...</span>
(Session info: chrome=56.0.2924.87)
(Driver info: chromedriver=2.28.455520 (cc17746adff54984afff480136733114c6b3704b),platform=Windows NT 6.1.7601 SP1 x86_64)
Here is my code:
driver = webdriver.Chrome()
driver.get(url)
close_popup = driver.find_element_by_class_name('close-layer')
close_popup.click()
tab_feedback = driver.find_element_by_xpath('//*[@id="j-product-tabbed-pane"]/ul/li[2]')
tab_feedback.click()
driver.switch_to.frame(driver.find_element_by_xpath('//iframe[starts-with(@src, "//feedback.aliexpress.com/display/productEvaluation.htm")]'))
text_feedbacks = driver.find_elements_by_class_name('buyer-feedback')
next = driver.find_element_by_class_name('ui-pagination-next ui-goto-page')
next.click()
I thought that maybe selenium too fast, I tried to wait and loop but still can't get next page of feedbacks. Also i tried to get this element using xpath:
next = driver.find_element_by_xpath( "//div[@class='ui-pagination-navi util-left']/a[@class='ui-goto-page']")
But nothing helps.
How can i get next page of feedbacks using selenium? Why other element receives click?
