Devtools protocol working at the DOM level

766 Views Asked by At

I would like create test for the my website. I must click the button that open dialog and scrolling div. I have problem with "update DOM structure on the page". I don't see current DOM after click.

When I run the code, which click the button in Runtime.runScript/Runtime.evaluate in the structure DOM I don't see new elements. After run next Runtime.runScript/Runtime.evaluate the object Runtime has update DOM structure.

   Runtime.evaluate({expression: 'CLICK THE BUTTON'});
   Runtime.evaluate({expression: 'NEXT ACTION'});
   Runtime.evaluate({expression: 'NEXT ACTION'});
    /* .... */

Are there any solutions that have the current DOM structure all the time?

Runtime.evaluate({expression: 'CLICK THE BUTTON, SCROLLING, COMPLETE THE FORM...'});

I recently used phantomJS, but it's not efficient. I prefer nodejs.

0

There are 0 best solutions below