Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Select store view on Create/Edit tag page
- *
- * @param string $store_view Name of the store
- */
- protected function selectStoreView($store_view)
- {
- if (!$store_view) {
- return true;
- }
- $xpath = $this->_getControlXpath('dropdown', 'switch_store');
- $toSelect = $xpath . "//option[contains(.,'" . $store_view . "')]";
- $isSelected = $toSelect . '[@selected]';
- if (!$this->isElementPresent($isSelected)) {
- $storeId = $this->getAttribute($toSelect . '/@value');
- $this->addParameter('storeId', $storeId);
- $this->fillForm(array('switch_store' => $store_view));
- $this->waitForPageToLoad();
- }
- }
Add Comment
Please, Sign In to add comment