Skip to content

Commit

Permalink
Use alternative method to click radio button switcher (joomla#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar authored Jan 20, 2021
1 parent 7a5691c commit a20d183
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,8 @@ protected function toggleSendMail($I)
$I->waitForText('Global Configuration', $I->getConfig('timeout'), ['css' => '.page-title']);
$I->comment('I open the Server Tab');
$I->click('Server');
$I->comment('I wait for send mail radio button');
$I->wait(0.5);
$I->click(['xpath' => "//input[@type='radio' and @value=0 and @name='jform[mailonline]']"]);
$I->comment('I click on the switcher to disable sending mails');
$I->waitForJS('document.evaluate("//input[@type=\'radio\' and @value=0 and @name=\'jform[mailonline]\']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.click();return true;');
$I->comment('I click on save');
$I->clickToolbarButton("Save");
$I->comment('I wait for global configuration being saved');
Expand Down

0 comments on commit a20d183

Please sign in to comment.