@@ -309,7 +309,6 @@ public function setErrorReportingToDevelopment()
309309 $ this ->debug ('I wait for error reporting dropdown ' );
310310 $ I ->selectOptionInChosen ('Error Reporting ' , 'Development ' );
311311 $ this ->debug ('I click on save ' );
312- //$this->clickToolbarButton('save');
313312 $ I ->click (['xpath ' => "//div[@id='toolbar-apply']//button " ]);
314313 $ this ->debug ('I wait for global configuration being saved ' );
315314 $ I ->waitForText ('Global Configuration ' , 60 , ['css ' => '.page-title ' ]);
@@ -439,7 +438,7 @@ public function selectOptionInRadioField($label, $option)
439438 $ I ->click ("//fieldset[@id=' $ radioId']/label[contains(normalize-space(string(.)), ' $ option')] " );
440439 }
441440
442- /**
441+ /**
443442 * Selects an option in a Chosen Selector based on its label
444443 *
445444 * @param string $label The text in the <label> with for attribute that links to the <select> element
@@ -457,6 +456,7 @@ public function selectOptionInChosen($label, $option)
457456 $ I ->click (['xpath ' => "//div[@id=' $ chosenSelectID']/a/div/b " ]);
458457 $ this ->debug ("I select $ option " );
459458 $ I ->click (['xpath ' => "//div[@id=' $ chosenSelectID']//li[text()=' $ option'] " ]);
459+
460460 // Gives time to chosen to close
461461 $ I ->wait (1 );
462462 }
@@ -476,7 +476,7 @@ public function selectOptionInChosenWithTextField($label, $option)
476476 $ chosenSelectID = $ selectID . '_chzn ' ;
477477 $ I = $ this ;
478478 $ this ->debug ("I open the $ label chosen selector " );
479- $ I ->click (['css ' => 'div# ' . $ chosenSelectID ]);
479+ $ I ->click (['css ' => 'div# ' . $ chosenSelectID ]);
480480 $ this ->debug ("I select $ option " );
481481 $ I ->fillField (['xpath ' => "//div[@id=' $ chosenSelectID']/div/div/input " ], $ option );
482482 $ I ->click (['xpath ' => "//div[@id=' $ chosenSelectID']/div/ul/li[1] " ]);
0 commit comments