The structure looks like this:
<div class="edit-post-header">
<div class="edit-post-header__settings">
<button type="button" aria-disabled="false" class="components-button editor-post-publish-button editor-post-publish-button__button is-primary">Publish</button>
</div>
</div>
I am trying to click it like this:
browser.find_element_by_xpath("//div[@class='edit-post-header']//div[@class='edit-post-header__settings']//button[@class='editor-post-publish-button__button']").click()
But it does not work.