For some reason i cannot click on this element button and 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 Python by Justin
• 140 points

reshown Jun 18, 2020 by Sirajul 800 views

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 Python

+2 votes
0 answers
0 votes
1 answer
0 votes
0 answers

I am trying to click the button but it is not working and it is drop list ..

<a class="quickreports btn btn3d tbbtn" href="javascript:" style="position:static" ...READ MORE

Dec 2, 2019 in Python by anonymous
• 120 points
819 views
+1 vote
1 answer

I have explained my scenario.Please suggest answer for this?

Hi @Vishal, You can simply use an if-else ...READ MORE

answered Jan 22, 2020 in Python by Kalgi
• 52,350 points
788 views
+2 votes
0 answers

I am trying to create mininet, but I cannot ping all host and switch

I am trying to do mininet environment ...READ MORE

Aug 4, 2019 in Python by Jiun-Jung
• 140 points
2,462 views
+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,059 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