I have this button
<button _ngcontent-gyx-c3="" class="btn btn-gradient-primary btn-icon-text p-3 col-12" routerlink="/certificate-request/create" routerlinkactive="active" type="button" tabindex="0"><i _ngcontent-gyx-c3="" class="icon-plus btn-icon-prepend"></i> New request </button>
how can i sleect it for seinuim test I tried this :
driver.find_element_by_xpath('//button[@class="btn btn-gradient-primary btn-icon-text p-3 col-12"][.="New request"]').click()
But I have the following exception:
no such element: Unable to locate element: {"method":"xpath","selector":"//button[@class="btn btn-gradient-primary btn-icon-text p-3 col-12"][.="New request"]"} (Session info: headless chrome=72.0.3626.109)