1

Im trying to select USA country on aliexpress on mobile version from progile using this code:

driver.find_elements_by_class_name('_3wGHS')[5].click()
driver.find_elements_by_class_name('_3wGHS')[0].click()
driver.find_element_by_class_name('container.m-address_list-item_container').click()
driver.find_element_by_class_name('container.m-address_list-item_container').click()
driver.find_element_by_class_name('container.m-address_list-item_container').click()

I receive error Element <div class="container m-address_list-item_container"> could not be scrolled into view on 4 line

How to fix it? HTML of page https://prnt.sc/uk6tzc

Tomain
  • 85
  • 1
  • 4
  • your code will fail because of the first two elements - those class names are programmatically generated - you need to use other selectors for those. Paste the HTML snippet to help, don't use photos - are against SO rules. – Alin Stelian Sep 19 '20 at 18:50
  • `
    United States
    ` Is it?
    – Tomain Sep 20 '20 at 07:43

0 Answers0