0

I am trying to download a file from MS Edge. The webpage is protected by a username and a password. I am able to open up MS Edge, and navigate to the appropriate page, however, I can't navigate the UserName and PassWord box.

An error appears as follows:

TypeError: Object of type builtin_function_or_method is not JSON serializable

I have tried a larger program, but broke it down to the following simple steps, since I am in debugging-mode:

import time
from selenium import webdriver

driver = webdriver.Edge() #Edge opens

time.sleep(3)

driver.get("my_URL") #Webpage opens

time.sleep(3)

id_box = driver.find_element(id,"correct_id") #Error Occurs
3
  • 1
    Can we see the box , box source or probably url if possible to understand your issue. Commented Jan 19, 2023 at 7:10
  • URL: interactive.advantage.am/Portal/Secure/… Commented Jan 19, 2023 at 11:40
  • Unable to access the URL Commented Jan 19, 2023 at 11:51

1 Answer 1

0

You'll need to search like that:

from selenium.webdriver.common.by import By


id_box = driver.find_element(By.ID,"correct_id")

Because only id isn't a valid object.

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.