There is no solution to chromedriver using angular.js on Mac

Time:2021-10-26

This installation is in accordance withOfficial tutorial of angular.js

Since Git is used in the front installation, it is recommended to provide its own ladder.

At this point:

npm run protractor

Will always report errors:

Error: Could not find chromedriver

The key to this step is to have chromedriver.exe on the MAC system. You’re right. It’s exe… And the chromedriver.zip under the NPM instruction given in the tutorial can’t be decompressed. So we need to download it manually, unzip it, and add the. Exe suffix.

The download address is as follows:
https://chromedriver.storage.googleapis.com/2.10/chromedriver_mac32.zi…
Note: proxy must be used here, otherwise there is no speed at all. Even if you use an agent, you may not be able to download it. It is recommended to download it using Chrome’s own Downloader, or buy a Xunlei VIP and download it offline
After decompression, add the. Exe suffix and copy the original zip and exe to the following path

angular-phonecat/node_modules/protractor/selenium/

Then run again

npm run protracot

It’s a success~

reference resources

Recommended Today

Object memory layout and object access location

First, feel the memory layout through an example CustomerTest public class CustomerTest { public static void main(String[] args) { Customer cust = new Customer(); } } Customer image.png Memory layout at this time image.png notice: 1. Runtime metadata:There are some information describing the current instance, such as hash value and lock status.2. Name is the […]