I have a web app built by Django, front-end is built by React. I tried to test bdd with behave and selenium. I run a test with Chrome web driver and phantomjs one but the tests only passed using chrome. I captured a screenshot when it runs on phantom and saw that the page is not fully rendered. Please give some suggestions about this issue. Do I need do further configuration to test with phantomjs. Thank you.
This is a common problem with PhantomJS (the page not being fully rendered), and often isn't something that can be remedied with explicit/implicit waits. Add a long (5 second) sleep to your code and take another screenshot. 
If the page is fully rendered, follow @Alex Lucaci's instructions for adding (ideally) explicit waits.
If the page still isn't fully rendered, PhantomJS just wont work for you in this case. Personally, I would advise against using PhantomJS at all, as it is problematic in a myriad of ways, but also because why would you test on a browser that literally no one uses as their actual browser?
BDD - Test pass on chrome but not on Phantomjs