Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14360

Send matching command to a discord channel with selenium

$
0
0

I want to send a command /richest to discord channel like this:

enter image description here

Here is my code:

# Send messageinput_box = driver.find_element(By.XPATH, input_box_xpath)input_box.send_keys('/richest')  #time.sleep(2)  # Wait for 2 seconds after writing messageinput_box.send_keys(Keys.ENTER)time.sleep(1)  # Wait for 1 second after pressing enter

But it doesn't work. I always stuck at this one:

enter image description here


Viewing all articles
Browse latest Browse all 14360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>