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

Glossary behat fails in chrome

    XMLWordPrintable

Details

    Description

      Following features are failing on nightly.
      Reason being these link are in navigation block and wraps on 2 lines when on small screen.
      As chrome driver tries to click in centre of link, it fails to do so.
      https://code.google.com/p/selenium/issues/detail?id=2766
      https://code.google.com/p/chromedriver/issues/detail?id=28

      01. Exception thrown by (//html/.//a[./@href][(((./@id = 'Browse by alphabet' or contains(normalize-space(string(.)), 'Browse by alphabet')) or contains(./@title, 'Browse by alphabet') or contains(./@rel, 'Browse by alphabet')) or .//img[contains(./@alt, 'Browse by alphabet')])] | .//*[./@role = 'link'][((./@id = 'Browse by alphabet' or contains(./@value, 'Browse by alphabet')) or contains(./@title, 'Browse by alphabet') or contains(normalize-space(string(.)), 'Browse by alphabet'))])[1]
          unknown error: Element is not clickable at point (109, 488). Other element would receive the click: <p class="tree_item leaf hasicon">...</p>
            (Session info: chrome=41.0.2272.101)
            (Driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Linux 3.13.0-24-generic x86_64) (WARNING: The server did not provide any stacktrace information)
          Command duration or timeout: 77 milliseconds
          Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:02:37'
          System info: host: 'nightly', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-24-generic', java.version: '1.7.0_75'
          Session ID: 7d16fc1f7a4419a6f0979c3a55a025de
          Driver info: org.openqa.selenium.chrome.ChromeDriver
          Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/tmp/.com.google.Chrome.wNibEk}, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, version=41.0.2272.101, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, applicationCacheEnabled=false, takesScreenshot=true}]
          In step `And I follow "Browse by alphabet"'.                                                    # behat_general::click_link()
          From scenario `Search by keyword and browse by alphabet'.                                       # /store/moodle/behat_whole_suite_m_chrome/mod/glossary/tests/behat/search_entries.feature:46
          Of feature `Glossary entries can be searched or browsed by alphabet, category, date or author'. # /store/moodle/behat_whole_suite_m_chrome/mod/glossary/tests/behat/search_entries.feature
      

      01. Exception thrown by (//html/.//a[./@href][(((./@id = 'Browse by category' or contains(normalize-space(string(.)), 'Browse by category')) or contains(./@title, 'Browse by category') or contains(./@rel, 'Browse by category')) or .//img[contains(./@alt, 'Browse by category')])] | .//*[./@role = 'link'][((./@id = 'Browse by category' or contains(./@value, 'Browse by category')) or contains(./@title, 'Browse by category') or contains(normalize-space(string(.)), 'Browse by category'))])[1]
          unknown error: Element is not clickable at point (109, 511). Other element would receive the click: <p class="tree_item leaf hasicon">...</p>
            (Session info: chrome=41.0.2272.101)
            (Driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=Linux 3.13.0-24-generic x86_64) (WARNING: The server did not provide any stacktrace information)
          Command duration or timeout: 67 milliseconds
          Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:02:37'
          System info: host: 'nightly', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-24-generic', java.version: '1.7.0_75'
          Session ID: 4af96af89ed824d97ba87ac9d535c3e1
          Driver info: org.openqa.selenium.chrome.ChromeDriver
          Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, browserName=chrome, chrome={userDataDir=/tmp/.com.google.Chrome.Bas9nM}, rotatable=false, locationContextEnabled=true, mobileEmulationEnabled=false, version=41.0.2272.101, takesHeapSnapshot=true, cssSelectorsEnabled=true, databaseEnabled=false, handlesAlerts=true, browserConnectionEnabled=false, webStorageEnabled=true, nativeEvents=true, applicationCacheEnabled=false, takesScreenshot=true}]
          In step `And I follow "Browse by category"'.                                                      # behat_general::click_link()
          From scenario `Glossary entries can be organised in categories and categories can be autolinked'. # /store/moodle/behat_whole_suite_m_chrome/mod/glossary/tests/behat/categories.feature:8
          Of feature `Glossary entries can be organised in categories'.                                     # /store/moodle/behat_whole_suite_m_chrome/mod/glossary/tests/behat/categories.feature
      

      Attachments

        Activity

          People

            rajeshtaneja Rajesh Taneja
            rajeshtaneja Rajesh Taneja
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            CiBoT CiBoT
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/May/15