Skip to content

Commit 8b47e7a

Browse files
committed
MAGETWO-32079: Alternative WebDriver support
1 parent cf88c25 commit 8b47e7a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

dev/tests/functional/tests/app/Magento/Install/Test/Block/CustomizeStore.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
namespace Magento\Install\Test\Block;
77

88
use Mtf\Block\Form;
9+
use Mtf\Client\Element\SimpleElement;
910
use Mtf\Client\Locator;
11+
use Mtf\Fixture\FixtureInterface;
1012

1113
/**
1214
* Customize Your Store block.
@@ -20,6 +22,13 @@ class CustomizeStore extends Form
2022
*/
2123
protected $next = "[ng-click*='next']";
2224

25+
/**
26+
* First field selector
27+
*
28+
* @var string
29+
*/
30+
protected $firstField = '[ng-model*="language"]';
31+
2332
/**
2433
* Click on 'Next' button.
2534
*
@@ -29,4 +38,17 @@ public function clickNext()
2938
{
3039
$this->_rootElement->find($this->next, Locator::SELECTOR_CSS)->click();
3140
}
41+
42+
/**
43+
* Ensure the form is loaded and fill the root form
44+
*
45+
* @param FixtureInterface $fixture
46+
* @param SimpleElement|null $element
47+
* @return $this
48+
*/
49+
public function fill(FixtureInterface $fixture, SimpleElement $element = null)
50+
{
51+
$this->waitForElementVisible($this->firstField);
52+
return parent::fill($fixture, $element);
53+
}
3254
}

0 commit comments

Comments
 (0)