Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-45249

Behat error in chrome when switching windows

XMLWordPrintable

    • MOODLE_27_STABLE
    • MOODLE_27_STABLE
    • 45249-27
    • Hide

      Run the following behat tests in Chrome.

      sudo -u www-data vendor/bin/behat --config moodledata/behat/behat.yml --profile chrome --name "In a report, admin can see loglive data"
      

      Show
      Run the following behat tests in Chrome. sudo -u www-data vendor/bin/behat --config moodledata/behat/behat.yml --profile chrome --name "In a report, admin can see loglive data"

      The following fail occurs when running behat with chromedriver
      (v2.9)

      01. unknown error: 'name' must be a nonempty string
            (Session info: chrome=34.0.1847.116)
            (Driver info: chromedriver=2.9.248304,platform=Linux 3.13.0-24-generic x86_64) (WARNING: The server did not provide any stacktrace information)
          Command duration or timeout: 5 milliseconds
          Build info: version: '2.41.0', revision: '3192d8a', time: '2014-03-27 17:17:32'
          System info: host: 'workstation', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-24-generic', java.version: '1.7.0_55'
          Session ID: 703fdb97c4f69f71d047f093e4bcb4fe
          Driver info: org.openqa.selenium.chrome.ChromeDriver
          Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/tmp/.com.google.Chrome.Qre1qQ}, rotatable=false, locationContextEnabled=true, version=34.0.1847.116, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, nativeEvents=true, webStorageEnabled=true, applicationCacheEnabled=false, takesScreenshot=true}]
          In step `And I switch to the main window'.                                                                                        # behat_general::switch_to_the_main_window()
          From scenario `Check loglive report entries and make sure the pause/resume button works for legacy reader along with ajax calls'. # /var/www/integration/report/loglive/tests/behat/loglive_report.feature:58
          Of feature `In a report, admin can see loglive data'. 
      

      A quick google suggests that at some point pre chromedriver 2.7 things changed neither "Main" nor "main" were no longer associated with the primary window.
      It could be this?

            samhemelryk Sam Hemelryk
            samhemelryk Sam Hemelryk
            Dan Poltawski Dan Poltawski
            Marina Glancy Marina Glancy
            Andrew Davis Andrew Davis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.