I am trying to click on a button using this command:
Then submit().click("//input[@id='myButton' and @type='button' and @value='CLICK HERE']")
This works fine when I set up the driver on my local machine:
* configure driver = { type: 'chrome', showDriverLog: true}
However, on the remote machine, it doesn't work.
* configure driver = { type: 'chromedriver', start: false, webDriverUrl: 'https://mygrid.com' }
I've tried multiple things such as:
And locate("//input[@id='myButton' and @type='button' and @value='CLICK HERE']").exists
-> This returns true
This does scroll down so the button is visible(I can see from screenshot)
And script("//input[@id='myButton' and @type='button' and @value='CLICK HERE']", '_.scrollIntoView()') And click('//input[@id='myButton' and @type='button' and @value='CLICK HERE']')
The action of clicking on the button doesn't throw an error in Karate, however it doesn't actually get done when on a remote driver..