I tried using the command below but it didn't work:
btn_buy = page.ele("#gpay-button-online-api-id").click()
page.run_js("document.getElementById('gpay-button-online-api-id').click()")
I opened Devtool as shown in the picture and executed the command below and it was successful:
"document.getElementById('gpay-button-online-api-id').click()"
So can I use the javascript command: "document.getElementById('gpay-button-online-api-id').click()" for drissionpage? Please help
I tried using the command below but it didn't work: btn_buy = page.ele("#gpay-button-online-api-id").click() page.run_js("document.getElementById('gpay-button-online-api-id').click()")
I opened Devtool as shown in the picture and executed the command below and it was successful: "document.getElementById('gpay-button-online-api-id').click()"
So can I use the javascript command: "document.getElementById('gpay-button-online-api-id').click()" for drissionpage? Please help