You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/9.testing/2.automation/1.common-issues-and-solutions.md
+125-4Lines changed: 125 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ All the major issues related to the automation testing have been listed down bel
38
38
39
39
### 2.Error Message:"Details: session not created: This version of ChromeDriver only supports Chrome version"
40
40
41
-
**Description**: This issue occures when the package:`appium-chromium-driver` is outdated. Due to this there is a mismatch in the chrome browser version and the package.
41
+
**Description**: This issue occures when the package:`appium-chromium-driver`and `chromedriver`is outdated. Due to this there is a mismatch in the chrome browser version and the package.
42
42
43
43
**Solution**:
44
44
1. Open the terminal in your project.
@@ -47,11 +47,14 @@ All the major issues related to the automation testing have been listed down bel
47
47
npm i appium-chromium-driver --save-dev
48
48
```
49
49
2. Update the chrome browser to the latest version. Open**Chrome > Settings > About Chrome**
50
-
3. Now excute the script by the running the commnd below:
50
+
3. Now, open `package.json` file and locate `chromedriver`package.
51
+
4. Update the package version with your chrome browser version. Eg. **139.0.0**
52
+
5. Run `npm install`.
53
+
6. Now excute the script by the running the command below:
51
54
```shell
52
55
npm run wdio
53
56
```
54
-
4. The issue should have been resolved.
57
+
7. The issue should have been resolved.
55
58
56
59
### 3.Error Message:"The requested port may already be in use."
57
60
@@ -139,4 +142,122 @@ The solution for this issues have to be done in three steps:
139
142
9. After setting the path, the environment variables should look something like this:
140
143
<img src="/images/testing/java_home_path.png">
141
144
142
-
After performing the steps mentioned above. The issue should have been fixed.
145
+
After performing the steps mentioned above. The issue should have been fixed.
146
+
147
+
### 7.Errorwhile installing `wdio-chromedriver-service` on webdriverio project.
148
+
149
+
**Description**: This error occurs due to webdriverio version. Latest webdriverio version doesn't support `wdio-chromedriver-service`.
150
+
151
+
**Solution**: We need to downgrade the webdriverio version to solve this issue since the latest version: `9.19.1` doesn't support thismodule.
152
+
153
+
1. Execute the command given below to downgrade webdriverio version to v8.0.0
2. Now, execute the command given below to install `wdio-chromedriver-service` module:
158
+
```shell
159
+
npm install wdio-chromedriver-service --save-dev
160
+
```
161
+
162
+
**Note:** With the latest webdriverio version: v9. `wdio-chromedriver-service` is no longer required. It automatically fetches the installed chrome version driver.
163
+
164
+
### 8.Error Message: unknown server-side error: Appium Flutter driver not found
165
+
166
+
**Description**: Happens when the `appium-flutter-driver` plugin isn’t installed.
167
+
168
+
**Solution**: Follow the steps mentioned below:
169
+
170
+
1. Open your system's terminal.
171
+
2. Execute the command given below to install appium-flutter-driver plugin:
Above error on vs code terminal when i execute npm install.
243
+
```
244
+
245
+
**Description:** On Windows, when you run npm install from the PowerShell terminal in VS Code, PowerShell tries to execute npm.ps1 (the wrapper script for npm). But your system’s execution policy doesn’t allow running PowerShell scripts
246
+
247
+
**Solutions:** We need to change the PowerShell execution policy to fix this issue. Follow the steps mentioned below:
0 commit comments