Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1385

Drone: resize the PhantomJS window after the start of a test

    XMLWordPrintable

Details

    Description

      The PhantomJS starts with incredibly small window, so it prevents to run lot of the tests where elements aren't shown in the initial viewport:

      org.openqa.selenium.ElementNotVisibleException: Error Message => 'Element is not currently visible and may not be manipulated' caused by Request => {"headers":{"Accept":"application/json, image/png","Connection":"Keep-Alive","Content-Length":"27","Content-Type":"application/json; charset=utf-8","Host":"localhost:24743"},"httpVersion":"1.1","method":"POST","post":"{\"id\":\":wdc:1378914555889\"}","url":"/click","urlParsed":{"anchor":"","query":"","file":"click","directory":"/","path":"/click","relative":"/click","port":"","host":"","password":"","user":"","userI
      

      We can use this instructions selectively for PhantomJS to make it work:
      https://github.com/richfaces/richfaces5/blob/master/build/build-resources/src/main/java/org/richfaces/arquillian/browser/PrepareBrowserSession.java

      Attachments

        Activity

          People

            kpiwko Karel Piwko
            lfryc Lukáš Fryč (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: