RE: Help with ecommerce website and pop which says ‘Go to Checkout’ or ‘Continue Shopping’
I am new to all this. On the eCommerce website where I am assuming a pop up box appears which says ‘Go to Checkout’ or ‘Continue Shopping’ I cant get my tests to get pass this.
Are there answers for the eCommerce website somewhere?
Any help appreciated.
Couldn’t get it working through the CSS. What i did was add a small sleep as you will see from the snippet below and it appears to have done the trick. Some sort of sync issue perhaps. Got lots to learn at the moment. Really appreciate the help so far.
driver.find_element(:link_text, “All Product”).click
driver.find_element(:link_text, “iPhone 5″).click
driver.find_element(:xpath,”//input[@value=’Add To Cart’]”).click
driver.find_element(:link_text, “Go to Checkout”).click
#’expect(driver.find_element(:tag_name, “body”).text).to include(“Checkout”)