I need help locating a dynamic element on a web page.
Even though the id changes each time, it always starts with "ember10", and has the word "btn-primary" in the class, and no other element has both of those characteristics.
I tried using,
driver.findElements(By.XPATH,(//*[contains(@id, ‘ember10’)and contains(@class,'btn-primary')
But I keep getting Invalid Snytax errors when I run. Anyone know how I would go about locating this dynamic element?