I'm working on a project, yet for some reason my random.sample isn't doing anything, yet there are no errors. Code below:
from selenium import webdriver
from selenium.webdriver.common. by import By
from selenium.webdriver.common.keys import Keys
import random
import time
Browser = webdriver.Edge()
Browser.maximize_window()
Browser.delete_all_cookies()
Browser.get('https://www.facebook.com/login/?privacy_mutation_token=eyJ0eXBlIjowLCJjcmVhdGlvbl90aW1lIjoxNzYwMjEwNjcxLCJjYWxsc2l0ZV9pZCI6MzgxMjI5MDc5NTc1OTQ2fQ%3D%3D&next')
input('Press enter to continue')
while True == True:
Password = ['A', 'a', 'B', 'b', 'C', 'c', 'D', 'd', 'E', 'e', 'F', 'f', 'G', 'g', 'H', 'h', 'I', 'i', 'J', 'j', 'K', 'k', 'L', 'l', 'M', 'm', 'N', 'n', 'O', 'o', 'P', 'p', 'Q', 'q', 'R', 'r', 'S', 's', 'T', 't', 'U', 'u', 'V', 'v', 'W', 'w', 'X', 'x', 'Y', 'y', 'Z', 'z', '!', '1', '@', '2', '#', '3', '$', '4', '%', '5', '^', '6', '&', '7', '*', '8','(', '9', ')', '0', '_', '-', '+', '=', '~', '\']
random.sample(Password, 6)
print(Password)
Passenter = Browser.find_element(By.XPATH, '//*[@id="pass"]')
Passenter.click()
Passenter.send_keys(''.join(Password))
time.sleep(5)
PS: the by was moved because reddit kept making it a link