From couple of days I am trying to find out what is the proper XPATH for the button on the website.
This is the html code of the button:
<div class="rc_library_element_name rc_actionable ia-inline-block" href="reporteditor.phtml?.op=3277&.cr=._%21Mqxtjfi_SFjudmo_SWfssuv&.sess=8Otpr5-9Bz_wpGJTXqAEAPTCP7GkYg..&.done=WvKqgMCoA3IAAEf5xL0AAAAK8">Invoice Detail Report</div>
I have tried a few methods, such as:
invoice_detail_report = wait.until(EC.element_to_be_clickable((By.XPATH, '/html/body/div[2]/div[2]/div[2]/div[2]/div/div[2]/div[5]/div[2]/div[17]/table/tbody/tr/td[2]/div[1]')))
or
invoice_detail_report = wait.until(EC.element_to_be_clickable((By.XPATH, '//DIV[@class="rc_library_element_name rc_actionable ia-inline-block"][text()="Invoice Detail Report"]')))
Unfortunately none of these worked out.
Could you please advise what is the proper xpath for that button?
Thank you very much for your help,
Greetings.