gemini-testing / gemini

💀💀💀[DEPRECATED] Use hermione
https://github.com/gemini-testing/hermione
MIT License
1.5k stars 149 forks source link

I need to capture the screenshot of the root url and compare it with an updated url #961

Closed ganeshrevankar closed 5 years ago

ganeshrevankar commented 5 years ago

When reporting a bug, make sure you provide all required info below. Reports without this information may be closed. I have a requirement of comparing 2 webpages , One with base url and the other with the update url. Do i need to run

  1. Update command first
  2. Then test command every time.

As I have around 50 plus pages to be compared every time.

Please provide the solution for the same.

I know this is not a bug. But Need some help on this. My test.js currently looks like this

gemini.suite('parent', function(parent) { parent.setUrl('/?optimizely_x=10168291640') .setCaptureElements('body') .capture('Full Page', (actions) => actions.wait(2000)) }), gemini.suite('parent', function(child) { child.setUrl('/?optimizely_x=11398642234') .setCaptureElements('body') .capture('Full Page', (actions) => actions.wait(2000)) });

Output of gemini --version:

...

Contents of .gemini.yml file:

Test source code:

Command used to run the test:

Publically accessible URL of the page you are testing against:

http://

Result:

...

Expected behaviour:

...

j0tunn commented 5 years ago

Duplicate for https://github.com/gemini-testing/gemini/issues/960