Using Selenium to try and locate + press a button inside of an Atlassian Jira environment.
The button class is not unique and the button doesn’t have a button ID. I assume the website is built in an incompatible way to interact with Selenium. All attempts end with no elements found. Has anyone got any suggestions?
I’m using PowerShell currently and have tired numerous search methods here’s the latest which I hoped would work but still nothing..
# Find the <span> element with the text “Update site”
$span_element = $driver.FindElementByXPath(“//span[text()=’Update site’]”)
# Navigate to its parent <button> element
$button_element = $span_element.FindElementByXPath(“./..”)
# Perform actions on the button
$button_element.Click()