[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: Selenium script - stuck - could someone take a look?
From: Veek M <veekm () foo ! com>
Date: 2021-05-30 3:19:33
Message-ID: s8v085$a89$1 () dont-email ! me
[Download RAW message or body]
On 2021-05-29, Dennis Lee Bieber <wlfraed@ix.netcom.com> wrote:
> On Sat, 29 May 2021 09:40:35 -0000 (UTC), Veek M <veekm@foo.com> declaimed
> the following:
>
ah, yeah - man that took me a while to do (save to local file and use
file:///). It's working now, basically xpath mistake because I've
forgotten stuff.. but the script is almost complete and cleaned up..
Basically forgot that div.xpath('// doesn't use div as the root window -
thing starts the lookup from the very beginning. You got to .//
My "Next Page" is creating problems - asked here as well:
https://www.reddit.com/r/selenium/comments/nnrxuu/
what_is_overlay_backdrop_how_does_it_block_a/
def page_next():
tmp = driver.find_element_by_xpath('//button[contains(@class,
" next-next")]')
tmp = driver.find_element_by_xpath('.//div[@class=
"next-overlay-backdrop")]')
# e = WebDriverWait(driver, 200).until(EC.element_to_be_clickable(
# (By.XPATH, "//button[contains(@class, ' next-next']"))).click()
# e.click()
if tmp: tmp.click()
else: raise SystemExit('no next')
This is the error I get
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementClickInterceptedException: Message:
Element <button class="next-btn next-medium next-btn-normal
next-pagination-item next-next" type="button"> is not clickable at
point (699,649) because another element <div class="next-overlay-backdrop">
obscures it
--
https://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic