I've automated payment via PayPal SandBox and it used to work well until recent days. Now something has changed there and I can't click the final Continue button anymore no matter what I do. I've tried everything: regular click, Actions class, JS click, several clicks in a row. Nothing helps. The strangest thing is that when I do this in console: document.getElementById('payment-submit-btn').click(); It works and the payment completes but when I execute the same script using JavaScriptExecutor it doesn't work anymore and the button doesn't get clicked. Is there a way to solve this?
Please use this xpath to click continue button
**//*[contains(text(),'Continue')]**
OR
//button[contains(text(),'Continue')]