A
A
AinzO2021-08-08 19:38:15
Python
AinzO, 2021-08-08 19:38:15

Why is typing in selenium chat not working?

from selenium import webdriver
from selenium.webdriver.common.keys import Keys


def main():
  #enter pass and log

  driver=webdriver.Chrome()
  driver.get("https://discord.com/channels/860517479122206720/868270887797944390")

  elem_enter_log=driver.find_element_by_xpath('//*[@id="app-mount"]/div[2]/div/div/div/div/form/div/div/div[1]/div[2]/div[1]/div/div[2]/input')
  elem_enter_log.send_keys("Логин")
  elem_enter_pass=driver.find_element_by_xpath('//*[@id="app-mount"]/div[2]/div/div/div/div/form/div/div/div[1]/div[2]/div[2]/div/input')
  elem_enter_pass.send_keys("Пароль")
  elem_enter_pass.submit()

  

  
  elem_enter_en1=driver.find_element_by_xpath('//*[@id="app-mount"]/div[2]/div/div[2]/div/div/div/div/div[2]/div[2]/main/form/div[1]/div/div/div[1]/div/div[3]/div[2]')
  elem_enter_en1.send_keys("!rarity poopies id 0")
  
  

if __name__=="__main__":
  main()

Part not working:
elem_enter_en1=driver.find_element_by_xpath('//*[@id="app-mount"]/div[2]/div/div[2]/div/div/div/div/div[2]/div[2]/main/form/div[1]/div/div/div[1]/div/div[3]/div[2]')
  elem_enter_en1.send_keys("!rarity poopies id 0")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Turkmen Time, 2021-08-08
@MrSel

Or maybe the error itself?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question