Navigate web-pages linearly as a markov process in a headless browser