I cannot click on the last element and i have been trying for hours PLEASE HELP

0 votes
from selenium import webdriver

from selenium.webdriver.chrome.options import Options

from getpass import getpass

import time

from selenium.webdriver.common.keys import Keys

from selenium.webdriver.common.by import By

from selenium.webdriver.support.ui import WebDriverWait

from selenium.webdriver.support import expected_conditions as ec


username = input("Enter the Email: ")

password = input("Enter Password: ")


driver = webdriver.Chrome("C:\Python38\chromedriver.exe")

driver.get("https://account.xbox.com/en-us/profile?gamertag=Lol%20u%20Ps4%20Pleb")


username_textbox = driver.find_element_by_id("i0116")

username_textbox.send_keys(username)

time.sleep(3)


login_button = driver.find_element_by_id("idSIButton9")

login_button.click()


time.sleep(4)


personal_account = driver.find_element_by_id("msaTileTitle")

personal_account.click()


time.sleep(4)


password_textbox = driver.find_element_by_id("i0118")

password_textbox.send_keys(password)


time.sleep(4)


login_button = driver.find_element_by_id("idSIButton9")

login_button.submit()


time.sleep(7)


print(driver.title)


add_friend = driver.find_elements_by_id("addfriendactionbutton")

add_friend.click()


print("Added Friend Success")


time.sleep(3)

quit








Jun 18, 2020 in Selenium by Justin
• 140 points

recategorized Jun 18, 2020 by Gitika 850 views
Hey @Justin, Could you please post the details of the error that you are getting in the process?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Selenium

0 votes
1 answer

What is the actual conflict while performing click() on web element, and getting an error like element is not clickable at point(x,y)?

Hey @sastry, the error Element is not clickable ...READ MORE

answered Nov 27, 2019 in Selenium by Sirajul
• 59,230 points
3,559 views
0 votes
0 answers
+1 vote
2 answers
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,062 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP