In bidpom we wait after the action, not before.. so I would suggest moving this to whatever causes the thank you message to be displayed. Most likely this is the click_finish method.