While conducting my testing with selenium and webdriverio, I encountered an issue when interacting with a pop-up PayPal window. Despite being able to switch to the pop-up successfully and confirming that a form element is enabled, I faced an error message when attempting to set a value for that element:
https://i.sstatic.net/3Vuo8.png
Below is the relevant portion of my code:
await client
.window(windowId.paypal)
.waitForExist('#paypalLogo', 5000)
.pause(3000)
.setValue('input#email', 'xxxxxx');
However, using the following snippet:
const isEnabled = await client
.window(windowId.paypal)
.waitForExist('#paypalLogo', 5000)
.pause(3000)
.isEnabled('input#email');
console.log(isEnabled);
t.true(isEnabled);
The output received was https://i.sstatic.net/X2JHK.png
If you have any suggestions or insights on how to resolve this issue, I would greatly appreciate it. Thank you.