A link on page 1 opens a new page "receipt page". It contains only text values. I need to assert or verify values on the receipt page to ensure that this is the correct receipt.
After executing the line
driver.find_element_by_link_text("Print Order!").click() #this what navigates the receipt page
the following tags are returned and must be validated:
<div style="border-bottom:1px dashed black;">
<span>Receipt No: 197</span>
<span style="font-size:smaller;font-weight:lighter;margin-left:130px;">16/10/2012 -04:10 pm </span>
<br>
<span>Customer Name: 123</span>
<br>
<span>Cashier Name: engy</span>
<br>
<br>
<table width="100%" style="font-size:smaller; border-bottom:1px dotted black;text-align:center;">
<br>
<span>Total Cost: 5700</span>