Quality Testing

Quality is delighting customers

Hi I tried to write a script for adding  aproduct to amazon cart..



public void testamazon() throws Exception {

selenium.waitForPageToLoad("50000");
selenium.click("link=Apple MacBook MC516LL/A 13.3-Inch Laptop");
selenium.waitForPageToLoad("30000");
selenium.click("bb_atc_button");
selenium.waitForPageToLoad("30000");
selenium.click("link=Edit your Cart");
selenium.waitForPageToLoad("30000");
selenium.type("quantity.1", "2");
selenium.click("update");
selenium.waitForPageToLoad("30000");
}


I got below error

ERROR: Element link=Apple MacBook MC516LL/A 13.3-Inch Laptop not found  

can u guys pls help me....

-- 
Thanks,
Naga

Views: 73

Reply to This

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2020   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service