* Example #1: When I select the "Edge to Edge" container type
* Example #2: And I select the "Boxed" container type
*
* @Then I select the :arg1 container type
*/
publicfunctioniSelectTheContainerType($name)
{
$element=$this->getSession()->getPage()->find('xpath',"//label[contains(.,'$name') and contains(@for, 'edit-layout-settings-ui-tab-content-layout-container-type')]");
$element->click();
}
/**
* Select a section container width
*
* Varbase Context #varbase
*
* Example #1: When I select the "Tiny" container width
* Example #2: And I select the "Narrow" container width
*
* @Then I select the :arg1 container width
*/
publicfunctioniSelectTheContainerWidth($width)
{
$element=$this->getSession()->getPage()->find('xpath',"//label[contains(.,'$width') and contains(@for, 'edit-layout-settings-ui-tab-content-layout-container-width')]");
$element->click();
}
/**
* Select a section breakpoint
*
* Varbase Context #varbase
*
* Example #1: Then I select the "md" "33% 67%" breakpoint
* Example #2: Then I select the "xs" "75% 25%" breakpoint
*
*
* @Then I select the :arg1 :arg2 breakpoint
*/
publicfunctioniSelectTheBreakpoint($size,$point)
{
$element=$this->getSession()->getPage()->find('xpath',"//*[contains(@class,'$size') and contains(.,'$point')]");
$bg_color=$this->getSession()->getPage()->find('xpath',"//label[contains(., '$bg_color') and contains(@for, 'edit-layout-settings-ui-tab-content-appearance-background-background-color')]");
$bg_color->click();
}
/**
* Uncheck the Edge to Edge Background option
*
* Varbase Contaxt #varbase
*
* Example: And I uncheck the Edge to Edge Background
$text_color=$this->getSession()->getPage()->find('xpath',"//label[contains(., '$color') and contains(@for, 'edit-layout-settings-ui-tab-content-appearance-typography-text-color-text')]");
$text_color->click();
}
/**
* Set alignment of text
*
* Varbase Context #varbase
*
* Example #1: Then I set the alignment to "End"
* Example #2: And I set the alignment to "Start"
*
* @Then I set the alignment to :arg1
*/
publicfunctioniSetTheAlignmentTo($align){
$alignment=$this->getSession()->getPage()->find('xpath',"//label[contains(., '$align') and contains(@for, 'edit-layout-settings-ui-tab-content-appearance-typography-text-alignment')]");
$alignment->click();
}
/**
* Set horizontal alignment for blocks
*
* Varbase Context #varbase
*
* Example #1: Then I set the Horizontal alignment to "Align center"
* Example #2: And I set the horizontal alignment to "Align start"
$horizontal_alignment=$this->getSession()->getPage()->find('xpath',"//label[contains(., '$h_align') and contains(@for, 'edit-layout-settings-ui-tab-content-appearance-alignment-horizontal-alignment-justify-content')]");
$horizontal_alignment->click();
}
/**
* Set vertical alignment for blocks
*
* Varbase Context #varbase
*
* Example #1: Then I set the Vertical alignment to "Align bottom"
* Example #2: And I set the Vertical alignment to "Align middle"
$vertical_alignment=$this->getSession()->getPage()->find('xpath',"//label[contains(., '$v_align') and contains(@for, 'edit-layout-settings-ui-tab-content-appearance-alignment-vertical-alignment-align-items')]");
$vertical_alignment->click();
}
/**
* Select an animation for a section
*
* Varbase Context #varbase
*
* Example #1: Then I select the "Flip Right" animation
* Example #2: When I select the "Zoom Out" animation
*
* @Then I select the :arg1 animation
*/
publicfunctioniSelectTheAnimation($anime){
$animation=$this->getSession()->getPage()->find('xpath',"//label[contains(., '$anime') and contains(@for, 'edit-layout-settings-ui-tab-content-appearance-animation-scroll-effects')]");