使用 Selenium RC 进行 Paypal-Sandbox 购买
我正在尝试使用 Selenium RC (Java) 在 Paypal-Sandbox 上购买一些东西,但它不起作用。
我用 Selenium IDE(Firefox AddOn)尝试过,它确实有效。我更改了查看方式并复制了 JUnit 4 代码,但它仍然不起作用。
问题在于单选按钮“ payment_type_paypal”的部分。不知怎的,它在 RC 中不起作用(单选按钮未选中)。有人有类似的经历和/或解决了问题吗?
登录developer.paypal.com并进入主页后...
//linking homepage
selenium.click("legalTerms");
selenium.click("pay");
selenium.waitForPageToLoad("30000");
//leaving homepage and switching to paypal
selenium.click("payment_type_paypal"); // <===== point of error
selenium.type("login_email",username);
selenium.type("login_password",pw);
Thx:)
I'm trying to buy something at Paypal-Sandbox with Selenium RC (Java), but it doesn't work.
I tried it with Selenium IDE (Firefox AddOn) and it did work. I changed the viewing and copied the JUnit 4 Code and it still doesn't work.
The problem is the part with the radio-button "payment_type_paypal". Somehow it doesnt work in RC (the radio-button is not checked). Do someone have similiar experiences and/or resolved the issue?
After loging in to developer.paypal.com and entering the homepage...
//linking homepage
selenium.click("legalTerms");
selenium.click("pay");
selenium.waitForPageToLoad("30000");
//leaving homepage and switching to paypal
selenium.click("payment_type_paypal"); // <===== point of error
selenium.type("login_email",username);
selenium.type("login_password",pw);
Thx :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
又是我,Krzys。我现在知道问题所在了。这是聚焦正确框架的问题。我无法让它与 Selenium RC 一起工作。
在我的“错误点”之前,您可以使用以下命令轻松修复 Selenium WebDriver 中的问题:
its me againg, Krzys. I know now the Problem. Its an issue with focussing the correct frame. I couldn't get it work with Selenium RC.
You can easily fix the issue in Selenium WebDriver with the command, before my "point of error":
又是我。如果您遇到 Paypal 沙盒系统的问题,您可以使用 xpath 解决“提交”按钮问题。
格瑞兹
克日斯
its me again. If you encounter problems with the Sandbox System of Paypal, you can overcome the "submit"-button issues using xpath.
Greetz
Krzys