I am using webdriver JS, which runs on Node js. I just pulled an all-nighter (9 hours) trying all sorts of things to automate a paypal express checkout flow reliably (no flakyness).
To do this, I use the paypal sandbox and literally run a test that automates a purchases and then interacts with the paypal popup window. This requires switching windows, and then once in the window I have to switch into an iframe the login form is nested in, then switch out of that iframe and then switch back to the main window. The entire time I have to wait for various preloaders and the wait times vary wildly.
This step of the test fails constantly, sometimes it seems that selenium can't reliably handle the window + iframe switching reliably - and then sometimes its the paypal sandbox which throws random errors. And then sometimes it just works.
Has anyone else worked with automating the paypal sandbox ui and?