2

I got a test that opens a webpage and does scraping.

It works. There's no question on that: - Works on Phantomjs/Chrome/Firefox when run on my machine everytime.

However, when run on Browserstack (I want to cover 5 most popular browsers, several OS and even mobile devices, for the moment I specify the exact same browser and platform as on my machine to ensure first the test runs properly on Browserstack), the test SOMETIMES passes and SOMETIMES fails with different errors: - Stale element - No such element in cache - Page fails to load after a submit - etc

And almost never the same element or submit.

Which is making me wonder whether Browserstack has some inherent instability I'm not aware of. Has anyone seen this happen on Browserstack?

1
  • Can you show code module of capabilities? Commented Sep 22, 2015 at 11:50

1 Answer 1

1

Welcome to BS. You get such errors because the environments on BS do lag a lot. They aren't giving much resources to their VMs so you will have to deal with it. Or put a lot of thread sleeps and special waits for your needs

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.