TestProject Forum

General => General Questions => Topic started by: Robert on May 08, 2016, 18:53:19 pm

Title: PhantomJS in python
Post by: Robert on May 08, 2016, 18:53:19 pm
I want to run my UI tests without loading a browser.
I read that its possible with PhantomJS

Where can I find a guide on how to use phantomJS with python code ?
Title: Re: PhantomJS in python
Post by: jackar56 on February 28, 2018, 13:46:50 pm
You did nearly everything in your script you need to, the last thing missing is this:

for i in range(10):
So, instead of sending the enter key, you should just click on it.

When I do a

in between, I get the following results:

Testing it with Firefox, the webpage also loads more.

To know more in detail you can visit JanBask Training (https://www.janbasktraining.com/) or mail at [email protected]