Error encountered in Webdriver JS: Extension could not be loaded due to a missing or unreadable manifest file

I've been trying to load an extension into Chrome using WebDriver JS. I have the .CRX file, Unpacked, and Zip all in the specified path, but it doesn't seem to work. All files are located in the same directory.

After attempting to load the extension, a popup appears with the message "Failed to load extension from C:\Program Files(x86)\ Google\Chrome\Application\80.0.3987.87\ C:\SeleniumJS\Ext\extension_2_41_0.CRX. Manifest file is missing or unreadable."

var webdriver = require('selenium-webdriver');
chrome = require('selenium-webdriver/chrome');
var path = "C:\\SeleniumJS\\Ext\\extension_2_4_1_0\\";

options = new chrome.Options();
options.addArguments("enable-automation");
options.addArguments("start-maximized");
options.addArguments( `--load-extension= ${path}` );

const builder = new webdriver.Builder();
builder.setChromeOptions(options);
const driver = builder.forBrowser( 'chrome' ).build();
driver.get ('http://www.bbc.co.uk');

Answer №1

Be sure that your files are not located within a subfolder, and that the folder is directly on the drive. For instance, D:\your folder (which contains the extension files).

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Is the ng-if directive malfunctioning?

After calling console.log($scope.showAddEvent), it is evident that the variable showAddEvent is being updated. However, the ng-if directive does not seem to reflect these changes as it does not display anything at all. As I am relatively new to angularjs, ...

What is the best way to access controls instance in react-three-fiber?

Is there a method to retrieve the controls instance of the scene in react-three-fiber? I am aware that it can be obtained using a ref, for example: import { useFrame } from 'react-three-fiber' const controls = useRef() useFrame(state => cont ...

Updating the votes count in Rails after a user has voted on pins

My rails app allows users to upvote pins using a system that is working well. However, I want the number of votes to be updated in real-time after each vote through an ajax method. Here's how my current upvote system is implemented: In app/controlle ...

How to trigger a submit action on a different page from an iframe using PHP

Is there a way to submit the iframe page using the modal's submit button in Page1.php to trigger the submit button of Page2.php? I need help executing this efficiently. The purpose of having the submit button in a modal is to perform multiple functio ...

Have you ever wondered why the expression `Number(new Boolean(false))` always returns `0

In the case of Boolean(new Boolean(...)) === true, it is because new Boolean(...) is treated as an object. However, why does Number(new Boolean(false)) === 0 (+new Boolean(false) === 0) and Number(new Boolean(true)) === 1? Instead of resulting in NaN. Wh ...

Disabling a button in PHP when the records column is empty: A step-by-step guide

Is there a way to dynamically disable a button in a table if certain columns in the database are empty? I have two buttons, View and Cancel, displayed in an echo statement. The values are retrieved from the database and shown in a table. I would like the ...

Is there a way to get an iframe to mimic the behavior of other media elements within a horizontal scrolling container?

Take a look at this code snippet: $(document).ready(function() { $('.scrollable-area').on('wheel', function(e) { var scrollLeft = $(this).scrollLeft(); var width = $(this).get(0).scrollWidth - $(this).width(); var delta ...

Perform a conditional post-build action in Jenkins without relying on plugins

It seems like I have the ability to make a build step conditional using this interesting plugin: link I'm wondering if this plugin also works for Post-Build steps. Is there a way to make Post-Build steps conditional without relying on a plugin? The ...

The D3.js click event seems to be unresponsive

Currently, I am working with D3.js and backbone.js. My goal is to create a click event for each path element. Although I have provided an onclick event as shown below, the function does not seem to be triggered. createpath: function(nodes) { paths = ...

Ways to display and conceal a div when hovering over another div

Currently, I have 4 divs grouped under the class "menubut." I am attempting to create a small overlay that appears when hovering over the menubut classes. Additionally, I want another div called "red" to show up about one-tenth of the size of the menubut ...

Loop through the array while handling a promise internally and ensure completion before proceeding

I am currently working on populating a response array with Firestore snapshots and creating download links for stored files within each snapshot. Despite trying various solutions involving Promises, the response array consistently ended up being null. do ...

How to Locate a Div Element in Selenium WebDriver Using Text?

Can anyone recommend a TCL equivalent for the following: driver.find_elements_by_xpath("//*[contains(text(), 'Lookup Network Elements')]")? I am attempting to execute something similar to: set networkButton [$window element by_xpath "//*\ ...

Making sure that the height of the <section> element is equal to the height of the viewport when the page

Is there a way to dynamically adjust the height of a <section> element to match the viewport every time the page is reloaded? Once the height is set, it should remain fixed even if the user resizes the window. For example, if the viewport's hei ...

Transform a dynamic list object in a form into JSON using javascript

I have been using a form submission script that converts form inputs to JSON and submits with ajax. It has worked well for simple forms in the past, but I am encountering an issue when trying to use it for lists. Within the form, there is a dynamic list o ...

"Creating a Stylish Window Shadow Effect for Your Adobe AIR HTML App

I created an HTML based AIR application with a transparent window that does not use system chrome. I utilized JavaScript and CSS3 to add a drop-shadow effect to the window, adjusting the shadow based on window focus. When the window is maximized, the shado ...

What are some tips for incorporating vue.js into a basic web application?

I've been trying to incorporate vue.js into my web application, but for some reason, it's not loading and the HTML is not firing in the browser. Please take a look at the code snippet below: <!DOCTYPE html> <html> < ...

Can PayPal sandbox accounts in Vue be used to process live transactions on a recently launched website?

I have completed the development of my app and now I am looking to host it online. Can I allow my clients to use sandbox accounts for real transactions? This is my first time creating an app with live online transactions using Paypal. Do I need to modify t ...

Vue.JS component containing DOM elements outside of the designated $el scope

Transitioning from a custom front-end framework to Vue is a new adventure for me. Our website is gradually integrating Vue, and as we refactor old components, I've encountered an issue. My question is: Can a component create DOM elements outside of i ...

Troubleshooting line break appearance glitch in Vue.js

When using my VueJS form, I encounter an issue where line breaks in my textarea content are ignored when rendering the email format on the Java backend side. How can I ensure that my line breaks are preserved when sending the content from the front end t ...

Redux - a method of updating state through actions

Hello, I am currently working on developing a lottery system and I have a question regarding the best approach to modify state using action payloads. Let's consider the initial state: type initialCartState = { productsFromPreviousSession: Product[ ...