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

Behat: Chrome error with 'And I add a page to section' step

XMLWordPrintable

      After editing a section, you cannot then add a Page as it causes an error in Chrome.

      See the attached Behat feature file. The key part is:

          When I edit the section "2"
          And I press "Save changes"
          And I add a "Page" to section "1" 
      

      If you run this feature in Chrome (at least on my system) it fails as below. However, if you un-comment the two extra lines I've added (going back to homepage and then to the coursepage) it will work.

      I am going to do the 'back to homepage' part in my actual test as a workaround but thought I should report this bug.

      01. Exception thrown by (//html//li[@id='section-1']/descendant::div[@class='section-modchooser']/span/a)[1]
          unknown error: Element is not clickable at point (531, 8). Other element would receive the click: <div class="container-fluid">...</div>
            (Session info: chrome=33.0.1750.154)
            (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64) (WARNING: The server did not provide any stacktrace information)
          Command duration or timeout: 29 milliseconds
          Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:54:28'
          System info: host: 'PCD243687', ip: '137.108.176.67', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_51'
          Session ID: 80802198174e66ab4c83ae43052ada6c
          Driver info: org.openqa.selenium.chrome.ChromeDriver
          Capabilities [{platform=XP, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=C:\Users\sm449\AppData\Local\Temp\scoped_dir2116_27793}, rotatable=false, locationContextEnabled=true, version=33.0.1750.154, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, nativeEvents=true, webStorageEnabled=true, applicationCacheEnabled=false, takesScreenshot=true}]
          In step `And I add a "Page" to section "1"'. # behat_course::i_add_to_section()
          From scenario `Test Chrome bug'.             # C:\Users\sm449\workspace\core-moodle-github\availability\tests\behat\display_availability.feature:19
          Of feature `mdl'.                            # C:\Users\sm449\workspace\core-moodle-github\availability\tests\behat\display_availability.feature
      

            rajeshtaneja Rajesh Taneja
            quen Sam Marshall
            David Monllaó David Monllaó
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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