Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98497

"TypeError: 'str' object is not callable" passing locator within expected_conditions through Python + Selenium

$
0
0

I'm receiving the following error:

Traceback (most recent call last): File "[redacted]", line 69, in wait.until(EC.element_to_be_clickable(By.ID("RptViewer_ctl09_ctl04_ctl00_ButtonLink"))) TypeError: 'str' object is not callable

Here's the section of code I believe is causing the problem:

66   browser.find_element_by_id('RptViewer_ctl09_ctl04_ctl00_ButtonLink')
67   drp = browser.find_element_by_id('RptViewer_ctl09_ctl04_ctl00_ButtonLink')
68   wait = WebDriverWait(browser, 10)
69   wait.until(EC.element_to_be_clickable(By.ID('RptViewer_ctl09_ctl04_ctl00_ButtonLink')))
70   drp.click()

I think what's causing the issue is the "ID('RptViewer_ctl09_ctl04_ctl00_ButtonLink')" section but I'm not sure if that's true and I'm not sure of how to fix it. Any guidance is extremely appreciated.

Thanks!


Viewing all articles
Browse latest Browse all 98497

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>