Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi,
I am trying to login to powerbi portal using selenium python code but keyboard is not reachable us the error i am facing.
Could you please hep me with it.
from selenium import webdriver
from webdriver_manager.firefox import GeckoDriverManager
driver = webdriver.Firefox(executable_path=GeckoDriverManager().install())
username = "************"
password = "***********"
# head to github login page
driver.get("https://app.powerbi.com")
# find username/email field and send the username itself to the input field
driver.find_element_by_id("email").send_keys(username)
Hi @DewCherian ,
Please make sure the account in your code has access to Power BI.
Here is an offical blog about Python package in Power BI. I hope it could help you solve your issue.
For reference: Create visuals by using Python packages in the Power BI service
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.