ruby stops after first loop
for e in 1..43 do
        browser.link(:xpath,".//*[@id='buttonPrint']").click
        sleep 3
        puts browser.link(:xpath,".//*[@id='cmdNext']").click
    end
    
    
    browser.goto "http://www.cramster.com/solution/solution/912984"
    
    for f in 1..33 do
        browser.link(:xpath,".//*[@id='buttonPrint']").click
        sleep 3
        puts browser.link(:xpath,".//*[@id='cmdNext']").click
    end

i want to have ruby go to the first url, click through all the buttons then go to the second url and click through all the buttons
right now ruby goes to the first url, performs the loop and does not see the second url
?
ruby stops after first loop
===

for e in 1..43 do
        browser.link(:xpath,".//*[@id='buttonPrint']").click
        sleep 3
        puts browser.link(:xpath,".//*[@id='cmdNext']").click
    end
    
    
    browser.goto "http://www.cramster.com/solution/solution/912984"
    
    for f in 1..33 do
        browser.link(:xpath,".//*[@id='buttonPrint']").click
        sleep 3
        puts browser.link(:xpath,".//*[@id='cmdNext']").click
    end

i want to have ruby go to the first url, click through all the buttons then go to the second url and click through all the buttons
right now ruby goes to the first url, performs the loop and does not see the second url
?