I have some tests, I am using
- Maven 3.1
- Selenide v3.5
- Selenium v2.53
- Firefox v45.0.1
I run them on windows and all thing are going fine with successful run, I noticed that browser on windows is explicitly open and see the tests directly on browser.
Then I need to move this to run it on UBUNTU server, I just used Xvfb and try to run the tests. My notice:
- I can't see the graphical browser, I search for this thing and it is called a headless browser.
- I got different problems with tests, some of them couldn't have a successful test and others can't find some elements! although it is worked on Windows.
My questions, what are the main points we have to consider while moving our test from windows client environment to Linux server?
I am reading about headless browsers, could I have to use one of them? or Selenium can handle this issue.
What are changes in code have to consider to run tests on server? Or the same code should work fine on both environments?