|
2 | 2 |
|
3 | 3 | Having a little trouble with the MFTF? See some common errors and fixes below.
|
4 | 4 |
|
5 |
| -## WebDriver issues |
6 |
| - |
7 |
| -Troubleshoot your WebDriver issues on various browsers. |
| 5 | +## AcceptanceTester class issues |
8 | 6 |
|
9 |
| -### PhantomJS |
10 |
| - |
11 |
| -You are unable to upload file input using the MFTF actions and are seeing the following exception: |
| 7 | +If you see the following error: |
12 | 8 |
|
13 | 9 | ```terminal
|
14 |
| -[Facebook\WebDriver\Exception\NoSuchDriverException] |
15 |
| -No active session with ID e56f9260-b366-11e7-966b-db3e6f35d8e1 |
| 10 | +AcceptanceTester class doesn't exist in suite folder. |
| 11 | +Run the 'build' command to generate it |
16 | 12 | ```
|
17 | 13 |
|
18 |
| -#### Reason |
| 14 | +### Reason |
19 | 15 |
|
20 |
| -Use of PhantomJS is not actually supported by the MFTF. |
| 16 | +Something went wrong during the `mftf build:project` command that prevented the creation of the AcceptanceTester class. |
21 | 17 |
|
22 |
| -#### Solution |
| 18 | +### Solution |
23 | 19 |
|
24 |
| -For headless browsing, the [Headless Chrome][]{:target="\_blank"} has better compatibility with the MFTF. |
| 20 | +This issue is fixed in the MFTF 2.5.0. |
25 | 21 |
|
26 |
| -### Chrome |
| 22 | +In versions of the MFTF lower than 2.5.0 you should: |
27 | 23 |
|
28 |
| -You are seeing an "unhandled inspector error" exception: |
| 24 | +1. Open the functional.suite.yml file at: |
29 | 25 |
|
30 |
| -```terminal |
31 |
| -[Facebook\WebDriver\Exception\UnknownServerException] |
32 |
| -unknown error: undhandled inspector error: {"code":-32601, "message": |
33 |
| -"'Network.deleteCookie' wasn't found"} .... |
34 |
| -``` |
| 26 | + ```terminal |
| 27 | + <magento root directory>/dev/tests/acceptance/tests/functional.suite.yml |
| 28 | + ``` |
| 29 | +1. Add quotation marks (`"`) around these values: |
35 | 30 |
|
36 |
| - |
| 31 | + 1. `%SELENIUM_HOST%` |
| 32 | + 1. `%SELENIUM_PORT%` |
| 33 | + 1. `%SELENIUM_PROTOCOL%` |
| 34 | + 1. `%SELENIUM_PATH%` |
| 35 | + |
| 36 | +1. Run the `vendor/bin/mftf build:project` command again. |
| 37 | +1. You should see the AcceptanceTester class is created at: |
37 | 38 |
|
38 |
| -#### Reason |
| 39 | + ```terminal |
| 40 | + <magento root directory>/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/AcceptanceTester.php |
| 41 | + ``` |
39 | 42 |
|
40 |
| -Chrome v62 is in the process of being rolled out, and it causes an error with ChromeDriver v2.32+. |
| 43 | +## WebDriver issues |
41 | 44 |
|
42 |
| -#### Solution |
| 45 | +Troubleshoot your WebDriver issues on various browsers. |
43 | 46 |
|
44 |
| -Use [ChromeDriver 74.0.3729.6+][]{:target="\_blank"} and [Selenium Server Standalone v3.9+][]{:target="\_blank"} in order to execute tests in Google Chrome v62+. |
| 47 | +### PhantomJS |
45 | 48 |
|
46 |
| -### Firefox |
| 49 | +You are unable to upload file input using the MFTF actions and are seeing the following exception: |
47 | 50 |
|
48 |
| -Tests that use the `moveMouseOver` action cause an error when run locally. |
| 51 | +```terminal |
| 52 | +[Facebook\WebDriver\Exception\NoSuchDriverException] |
| 53 | +No active session with ID e56f9260-b366-11e7-966b-db3e6f35d8e1 |
| 54 | +``` |
49 | 55 |
|
50 | 56 | #### Reason
|
51 | 57 |
|
52 |
| -There's a compatibility issue with Codeception's `moveMouseOver` function and GeckoDriver with Firefox. |
| 58 | +Use of PhantomJS is not supported by the MFTF. |
53 | 59 |
|
54 | 60 | #### Solution
|
55 | 61 |
|
56 |
| -None yet. Solving this problem is dependent on a GeckoDriver fix. |
| 62 | +For headless browsing, the [Headless Chrome][]{:target="\_blank"} has better compatibility with the MFTF. |
57 | 63 |
|
58 | 64 | <!-- Link Definitions -->
|
59 | 65 | [Headless Chrome]: https://developers.google.com/web/updates/2017/04/headless-chrome
|
60 |
| -[ChromeDriver 74.0.3729.6+]: https://chromedriver.storage.googleapis.com/index.html?path=2.33/ |
61 |
| -[Selenium Server Standalone v3.9+]: http://www.seleniumhq.org/download/ |
|
0 commit comments