我正试着在Paypal-Sandbox上买一些Selenium RC (Java)的东西,但它不起作用。
我在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 :)
发布于 2011-10-06 19:35:48
是我,Krzys。我现在知道问题所在了。这是一个聚焦正确帧的问题。我不能让它在Selenium RC上工作。
在我的“错误点”之前,您可以使用以下命令轻松地修复Selenium WebDriver中的问题:
driver.switchTo().defaultContent();发布于 2012-01-19 18:06:23
又是我。如果你在使用Paypal的沙盒系统时遇到问题,你可以使用xpath来解决“提交”-button的问题。
driver.findElement(By.xpath("//div[@id='nav-menu']/form/ul/li/ul/li[6]/input")Greetz Krzys
https://stackoverflow.com/questions/6423584
复制相似问题