0
inboxlv1 = driver.find_element(By.XPATH('//*[@placeholder="Email address"]'))
inboxlv1.send_keys(parsed[0][0])

why is it not callable?

4
  • Show us the full traceback and enough code to reproduce the problem! Commented Feb 8, 2021 at 13:25
  • The problem is not "why 'str' is not callable?". The problem is "why are you calling it?". You should provide the traceback. And some more code. What is By and it's By.XPATH. If XPATH is a string, you can't call it. Commented Feb 8, 2021 at 13:25
  • Why do you think it should be callable? Commented Feb 8, 2021 at 13:27
  • I asked a new question with more information about my main problem. Commented Feb 10, 2021 at 12:03

1 Answer 1

2
driver.find_element(By.XPATH,'yourxpath')

You were using a Java style for Python instead do it like so. Calling xpath like a method.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.