i was trying various "find element by" methods to find a button that i need to click
<button data-test-modal-close-btn aria-label="Dismiss" id="ember1106" class="artdeco-modal__dismiss artdeco-button artdeco-button--circle artdeco-button--muted artdeco-button--2 artdeco-button--tertiary ember-view">flex
The html code has been mentioned above
and i tried access it through id but the ember under the id will randomly shuffles it number each time. so i red a answer on internet that i can use xpath to find aria label
close_button = self.driver.find_elements_by_css_selector("[aria-label=Dismiss]")
close_button.click()
but its helpless. can someone help me on this