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

Failures with Selenium 2.50.1, FF 44.0

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Run whole Behat suite with Selenium 2.47.1 and 2.51.0 with FF, chrome and phantomjs.

      Few scenarios to run for sure:

      With Phantomjs & Phantomjs-selenium
      1. "Workshop submission and assessment"
      Show
      Run whole Behat suite with Selenium 2.47.1 and 2.51.0 with FF, chrome and phantomjs. Few scenarios to run for sure: With Phantomjs & Phantomjs-selenium "Workshop submission and assessment"
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE
    • Pull Master Branch:
      wip-mdl-52970

      Description

      Failure 1:

      With changes to Selenium click behaviour, following fails while clicking on "Question bank" expansion link. As the click is happening on the centre of node it redirects to next page and fails.

      (::) failed steps (::)
       
      01. Exception thrown by (((//html//div[contains(concat(' ', normalize-space(@class), ' '), ' content ')]/ul[contains(concat(' ', normalize-space(@class), ' '), ' block_tree ')]/li[contains(concat(' ', normalize-space(@class), ' '), ' contains_branch ')]/ul/li[contains(concat(' ', normalize-space(@class), ' '), ' contains_branch ')][p[contains(concat(' ', normalize-space(@class), ' '), ' branch ')]/span[normalize-space(.)='Course administration']]|//div[contains(concat(' ', normalize-space(@class), ' '), ' content ')]/div/ul[contains(concat(' ', normalize-space(@class), ' '), ' block_tree ')]/li[contains(concat(' ', normalize-space(@class), ' '), ' contains_branch ')]/ul/li[contains(concat(' ', normalize-space(@class), ' '), ' contains_branch ')][p[contains(concat(' ', normalize-space(@class), ' '), ' branch ')]/span[normalize-space(.)='Course administration']]|//div[contains(concat(' ', normalize-space(@class), ' '), ' content ')]/div/ul[contains(concat(' ', normalize-space(@class), ' '), ' block_tree ')]/li[p[contains(concat(' ', normalize-space(@class), ' '), ' branch ')]/span[normalize-space(.)='Course administration']]|//div[contains(concat(' ', normalize-space(@class), ' '), ' content ')]/div/ul[contains(concat(' ', normalize-space(@class), ' '), ' block_tree ')]/li[p[contains(concat(' ', normalize-space(@class), ' '), ' branch ')]/a[normalize-space(.)='Course administration']])[1]/ul/li[contains(concat(' ', normalize-space(@class), ' '), ' contains_branch ')][child::p[contains(concat(' ', normalize-space(@class), ' '), ' branch ')]/child::a[normalize-space(.)='Question bank']])[1]/ul/li/p[contains(concat(' ', normalize-space(@class), ' '), ' tree_item ')]/a[normalize-space(.)='Questions'])[1]
          Element is not clickable at point (92, 328). Other element would receive the click: <p tabindex="-1" class="tree_item leaf"></p>
          Command duration or timeout: 69 milliseconds
          Build info: version: '2.50.1', revision: 'd7fc91b', time: '2016-01-29 19:08:26'
          System info: host: 'rajesh', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-74-generic', java.version: '1.7.0_91'
          Session ID: b30130b7-faf8-4b52-aa3a-a4a5a015910b
          Driver info: org.openqa.selenium.firefox.FirefoxDriver
          Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=43.0.4}]
          In step `And I navigate to "Questions" node in "Course administration > Question bank"'. # behat_navigation::i_navigate_to_node_in()
          From scenario `Delete a question used in a quiz'.                                        # /home/rajesh/moodles/stable/moodle/question/tests/behat/delete_questions.feature:41
          Of feature `A teacher can delete questions in the question bank'.  
      

      Failure 2:

      Button is being scrolled more and selenium fails to click on it.

      01. Exception thrown by (//html/.//input[./@type = 'submit' or ./@type = 'image' or ./@type = 'button'][(((./@id = 'Save changes' or ./@name = 'Save changes') or contains(./@value, 'Save changes')) or contains(./@title, 'Save changes'))] | .//input[./@type = 'image'][contains(./@alt, 'Save changes')] | .//button[((((./@id = 'Save changes' or ./@name = 'Save changes') or contains(./@value, 'Save changes')) or contains(normalize-space(string(.)), 'Save changes')) or contains(./@title, 'Save changes'))] | .//input[./@type = 'image'][contains(./@alt, 'Save changes')] | .//*[./@role = 'button'][(((./@id = 'Save changes' or ./@name = 'Save changes') or contains(./@value, 'Save changes')) or contains(./@title, 'Save changes') or contains(normalize-space(string(.)), 'Save changes'))])[1]
          Element is not clickable at point (139.4166717529297, 308). Other element would receive the click: <div class="submit"></div>
          Command duration or timeout: 64 milliseconds
          Build info: version: '2.50.1', revision: 'd7fc91b', time: '2016-01-29 19:08:26'
          System info: host: 'rajesh', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-74-generic', java.version: '1.7.0_91'
          Session ID: 4132c1ab-7448-47c1-88f7-d39fe1bd5868
          Driver info: org.openqa.selenium.firefox.FirefoxDriver
          Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=43.0.4}]
          In step `And I press "Save changes"'.                                # behat_forms::press_button()
          From scenario background.                                            # /home/rajesh/moodles/stable/moodle/grade/report/grader/tests/behat/switch_views.feature:7
          Of feature `We can change what we are viewing on the grader report'. # /home/rajesh/moodles/stable/moodle/grade/report/grader/tests/behat/switch_views.feature
       
      02. Exception thrown by (//html/.//input[./@type = 'submit' or ./@type = 'image' or ./@type = 'button'][(((./@id = 'Save changes' or ./@name = 'Save changes') or contains(./@value, 'Save changes')) or contains(./@title, 'Save changes'))] | .//input[./@type = 'image'][contains(./@alt, 'Save changes')] | .//button[((((./@id = 'Save changes' or ./@name = 'Save changes') or contains(./@value, 'Save changes')) or contains(normalize-space(string(.)), 'Save changes')) or contains(./@title, 'Save changes'))] | .//input[./@type = 'image'][contains(./@alt, 'Save changes')] | .//*[./@role = 'button'][(((./@id = 'Save changes' or ./@name = 'Save changes') or contains(./@value, 'Save changes')) or contains(./@title, 'Save changes') or contains(normalize-space(string(.)), 'Save changes'))])[1]
          Element is not clickable at point (139.4166717529297, 308). Other element would receive the click: <div class="submit"></div>
          Command duration or timeout: 103 milliseconds
          Build info: version: '2.50.1', revision: 'd7fc91b', time: '2016-01-29 19:08:26'
          System info: host: 'rajesh', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-74-generic', java.version: '1.7.0_91'
          Session ID: 4132c1ab-7448-47c1-88f7-d39fe1bd5868
          Driver info: org.openqa.selenium.firefox.FirefoxDriver
          Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=43.0.4}]
          In step `And I press "Save changes"'.                                # behat_forms::press_button()
          From scenario background.                                            # /home/rajesh/moodles/stable/moodle/grade/report/grader/tests/behat/switch_views.feature:7
          Of feature `We can change what we are viewing on the grader report'. # /home/rajesh/moodles/stable/moodle/grade/report/grader/tests/behat/switch_views.feature
       
      03. Exception thrown by (//html/.//*[self::input | self::textarea | self::select][not(./@type = 'submit' or ./@type = 'image' or ./@type = 'hidden')][(((./@id = 'qtype_qtype_description' or ./@name = 'qtype_qtype_description') or ./@id = //label[contains(normalize-space(string(.)), 'qtype_qtype_description')]/@for) or ./@placeholder = 'qtype_qtype_description')] | .//label[contains(normalize-space(string(.)), 'qtype_qtype_description')]//.//*[self::input | self::textarea | self::select][not(./@type = 'submit' or ./@type = 'image' or ./@type = 'hidden')])[1]
          Element is not clickable at point (259.20001220703125, 93.30000305175781). Other element would receive the click: <label for="qtype_qtype_description"></label>
          Command duration or timeout: 66 milliseconds
          Build info: version: '2.50.1', revision: 'd7fc91b', time: '2016-01-29 19:08:26'
          System info: host: 'rajesh', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-74-generic', java.version: '1.7.0_91'
          Session ID: 85072deb-8a6b-454d-96ce-45e94e56f4f6
          Driver info: org.openqa.selenium.firefox.FirefoxDriver
          Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=43.0.4}]
          In step `And I set the field "qtype_qtype_description" to "1"'.      # behat_forms::i_set_the_field_to()
          From scenario `Re-order questions by clicking on the move icon.'.    # /home/rajesh/moodles/stable/moodle/mod/quiz/tests/behat/editing_move_by_click.feature:39
          Of feature `Edit quiz page - drag-and-drop'.                         # /home/rajesh/moodles/stable/moodle/mod/quiz/tests/behat/editing_move_by_click.feature
       
      04. Field matching locator "'Question name'" not found.
          In step `Given I set the following fields to these values:'.         # behat_forms::i_set_the_following_fields_to_these_values()
          From scenario `Create, edit then preview a gapselect question.'.     # /home/rajesh/moodles/stable/moodle/question/type/gapselect/tests/behat/basic_test.feature:18
          Of feature `Test all the basic functionality of this question type'. # /home/rajesh/moodles/stable/moodle/question/type/gapselect/tests/behat/basic_test.feature
       
      05. Exception thrown by (//html/.//input[./@type = 'submit' or ./@type = 'image' or ./@type = 'button'][(((./@id = 'clearbutton' or ./@name = 'clearbutton') or contains(./@value, 'clearbutton')) or contains(./@title, 'clearbutton'))] | .//input[./@type = 'image'][contains(./@alt, 'clearbutton')] | .//button[((((./@id = 'clearbutton' or ./@name = 'clearbutton') or contains(./@value, 'clearbutton')) or contains(normalize-space(string(.)), 'clearbutton')) or contains(./@title, 'clearbutton'))] | .//input[./@type = 'image'][contains(./@alt, 'clearbutton')] | .//*[./@role = 'button'][(((./@id = 'clearbutton' or ./@name = 'clearbutton') or contains(./@value, 'clearbutton')) or contains(./@title, 'clearbutton') or contains(normalize-space(string(.)), 'clearbutton'))])[1]
          Element is not clickable at point (347.41668701171875, 30). Other element would receive the click: <fieldset class="felement fgroup"></fieldset>
          Command duration or timeout: 94 milliseconds
          Build info: version: '2.50.1', revision: 'd7fc91b', time: '2016-01-29 19:08:26'
          System info: host: 'rajesh', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-74-generic', java.version: '1.7.0_91'
          Session ID: 325eac61-2417-428f-aaa9-ea198b76b36e
          Driver info: org.openqa.selenium.firefox.FirefoxDriver
          Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=43.0.4}]
          In step `And I press "clearbutton"'.                                 # behat_forms::press_button()
          From scenario `Event list page is viewable and filtering works'.     # /home/rajesh/moodles/stable/moodle/report/eventlist/tests/behat/mainsection.feature:8
          Of feature `Page contains a list of events'.                         # /home/rajesh/moodles/stable/moodle/report/eventlist/tests/behat/mainsection.feature
       
      06. Exception thrown by (//html/.//a[./@href][(((./@id = 'course_add mod' or contains(normalize-space(string(.)), 'course_add mod')) or contains(./@title, 'course_add mod') or contains(./@rel, 'course_add mod')) or .//img[contains(./@alt, 'course_add mod')])] | .//*[./@role = 'link'][((./@id = 'course_add mod' or contains(./@value, 'course_add mod')) or contains(./@title, 'course_add mod') or contains(normalize-space(string(.)), 'course_add mod'))])[1]
          Element is not clickable at point (724.4166870117188, 19). Other element would receive the click: <td class="cell c6" id="report_loglive_r4_c6"></td>
          Command duration or timeout: 63 milliseconds
          Build info: version: '2.50.1', revision: 'd7fc91b', time: '2016-01-29 19:08:26'
          System info: host: 'rajesh', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-74-generic', java.version: '1.7.0_91'
          Session ID: b08990be-5452-4fb7-b865-c04d39b27bca
          Driver info: org.openqa.selenium.firefox.FirefoxDriver
          Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=43.0.4}]
          In step `And I follow "course_add mod"'.                                                                                          # behat_general::click_link()
          From scenario `Check loglive report entries and make sure the pause/resume button works for legacy reader along with ajax calls'. # /home/rajesh/moodles/stable/moodle/report/loglive/tests/behat/loglive_report.feature:58
          Of feature `In a report, admin can see loglive data'.                                                                             # /home/rajesh/moodles/stable/moodle/report/loglive/tests/behat/loglive_report.feature
       
      07. Exception thrown by (//html/.//input[./@type = 'submit' or ./@type = 'image' or ./@type = 'button'][(((./@id = 'Continue' or ./@name = 'Continue') or contains(./@value, 'Continue')) or contains(./@title, 'Continue'))] | .//input[./@type = 'image'][contains(./@alt, 'Continue')] | .//button[((((./@id = 'Continue' or ./@name = 'Continue') or contains(./@value, 'Continue')) or contains(normalize-space(string(.)), 'Continue')) or contains(./@title, 'Continue'))] | .//input[./@type = 'image'][contains(./@alt, 'Continue')] | .//*[./@role = 'button'][(((./@id = 'Continue' or ./@name = 'Continue') or contains(./@value, 'Continue')) or contains(./@title, 'Continue') or contains(normalize-space(string(.)), 'Continue'))])[1]
          Element is not clickable at point (589.2000122070312, 30). Other element would receive the click: <div></div>
          Command duration or timeout: 66 milliseconds
          Build info: version: '2.50.1', revision: 'd7fc91b', time: '2016-01-29 19:08:26'
          System info: host: 'rajesh', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-74-generic', java.version: '1.7.0_91'
          Session ID: 4bc2182a-f0ea-427c-96aa-7fc2a6e2e560
          Driver info: org.openqa.selenium.firefox.FirefoxDriver
          Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=43.0.4}]
          In step `And I press "Continue"'.                                                                                                 # behat_forms::press_button()
          From scenario `Upload users enrolling them on courses and groups'.                                                                # /home/rajesh/moodles/stable/moodle/admin/tool/uploaduser/tests/behat/upload_users.feature:8
          Of feature `Upload users'.
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Mar/16