mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
Merge branch 'wip-mdl-50259' of https://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
7dd6cd75de
1 changed files with 2 additions and 2 deletions
|
@ -180,7 +180,7 @@ class behat_course extends behat_base {
|
||||||
// Clicks the selected activity if it exists.
|
// Clicks the selected activity if it exists.
|
||||||
$activityxpath = "//div[@id='chooseform']/descendant::label" .
|
$activityxpath = "//div[@id='chooseform']/descendant::label" .
|
||||||
"/descendant::span[contains(concat(' ', normalize-space(@class), ' '), ' typename ')]" .
|
"/descendant::span[contains(concat(' ', normalize-space(@class), ' '), ' typename ')]" .
|
||||||
"[contains(., $activityliteral)]" .
|
"[normalize-space(.)=$activityliteral]" .
|
||||||
"/parent::label/child::input";
|
"/parent::label/child::input";
|
||||||
$activitynode = $this->find('xpath', $activityxpath);
|
$activitynode = $this->find('xpath', $activityxpath);
|
||||||
$activitynode->doubleClick();
|
$activitynode->doubleClick();
|
||||||
|
@ -190,7 +190,7 @@ class behat_course extends behat_base {
|
||||||
|
|
||||||
// Selecting the option from the select box which contains the option.
|
// Selecting the option from the select box which contains the option.
|
||||||
$selectxpath = $sectionxpath . "/descendant::div[contains(concat(' ', normalize-space(@class), ' '), ' section_add_menus ')]" .
|
$selectxpath = $sectionxpath . "/descendant::div[contains(concat(' ', normalize-space(@class), ' '), ' section_add_menus ')]" .
|
||||||
"/descendant::select[contains(., $activityliteral)]";
|
"/descendant::select[option[normalize-space(.)=$activityliteral]]";
|
||||||
$selectnode = $this->find('xpath', $selectxpath);
|
$selectnode = $this->find('xpath', $selectxpath);
|
||||||
$selectnode->selectOption($activity);
|
$selectnode->selectOption($activity);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue