我正在测试一个商店网站,它使用Bamboora作为测试其订单流程的一种方式。所以我可以做的没有问题的是等待Bamboora页面加载,我不能seam弄清楚如何做是等待Bamboora发送一个XHR请求并重定向回商店,这样商店就可以显示“订单完成”。
这是一个代码,告诉我当我点击引导我进入班博拉的按钮时该做些什么。(https://www.bambora.com/)
cy //confirmation before bambora
.get('.sticky-bottom')
.find('.innerwrapper-checkout-footer')
.find('.v-btn')
.click()
.wait(6000)
在页面上,我需要等待,直到Bamboora确认它,并完成付款,这持续了最多6-7秒,当手动测试。

这是我尝试重定向回商店站点的尝试:
cy
.get('.credit-card-form__removeText___1PUtd')
.click()
cy
.get('.buttons__debugContainerButton___2FwvW')
.eq('0')
.click()
cy
.get('.payment-card-start__payButton___3NC_4')
.click()
cy
.request('https://t-carlsjrapp.dsgapps.dk/pending-order')
发布于 2020-10-30 16:49:58
我假设班博拉是在iFrame中加载的。我在work with iFrames in Cypress上找到了这篇文章。
不过,我还没有测试过这个。
https://stackoverflow.com/questions/61457856
复制相似问题