Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97813

Press Button in Python with selenium

$
0
0

The Button looks like this in HTML <button type="submit" class="btn btn-success"> <strong>Gönder</strong></button>

And i used this in python

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

b = webdriver.Firefox()
b.get("####")
url = b.find_element_by_name("link")
url.send_keys("####")
b.find_element_by_xpath("//button[@type='submit']").click()

There are more buttons with type="submit" I need only call the 1 specific button

Does anybody know how I can click the button.


Viewing all articles
Browse latest Browse all 97813

Trending Articles



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