I have some experience in Selenium, using some code as below to locate elements using XPath; I recently started to develop an Chrome extension, and I could not find any similar way to locate elements using easier way similar to XPath. I’m having many complex queries developed in selenium, using the XPath methods. I just want to do the same
Tag: google-chrome-extension
Proxy Chrome Storage
I am trying to get my proxy chrome extention to keep on/off after closing using chrome.local.storage. This does not seem to work, can anyone give some examples on how to get this kind of code working? Right now my pac proxy works and turns on and off. The local storage does not seem to work at all, but I followed
Communication between browser extension and windows service
I have a browser extension(For chrome, Firefox, Edge) and now I want to query some info from the extension to the windows service which is running on the same machine. I need to pass some strings from the extension and the windows service will process these strings and return the processed strings. I have tried WebAssembly but it does not
How to get element without ID or Class Name using Javascript DOM
I’m developing a chrome extension for manipulating HTML elements. I got a little problem. The element that I want to manipulate is without ID or ClassName, like this: I want to manipulate the width. But there is no identifier in the tag div. How can I manipulate that tag using javascript DOM? Answer You can use querySelector. Here is a
Chrome Extension injecting into current tab page
Hello all I am creating a Chrome Extension and I am having issues with injecting some JS into the page tab that the user is currently on. I have a popup.html/.js files and a button within that: popup.HTML: popup.JS: Manifest.json: background.JS: content.JS: inject.JS: When I click on the icon and the popup shows I hit the button. Nothing happens an
Is there any way to know when a tab in the browser is covered by a window?
TL;DR: I’m working on a Chrome extension where I need to increase a count only when a tab is visible and not covered by another window. Is there any way to detect this? I’ve tried using the Page Visibility API, but here’s the problem with it: Imagine I have two windows docked side by side. My focus is on tab
How to get my button to work using javascript?
I am creating an Google chrome extension and I am trying to get my stop/stop logging button to work within my function named Logger. When the button is pressed it doesn’t react to the function I wrote, Currently it is displaying the stop-button but I want it to display the start-button when clicked. I hope I explained that to some
How to display the computer’s current RAM usage with JavaScript?
I want to make a Chrome extension to monitor CPU and RAM usage, but I can’t find out how to get the current RAM usage of the computer. I searched on Google and didn’t find anything. Eventually, I found this code below, and I tried it out to see if it works. But this code just prints out the RAM
Chrome identity API spotify oauth2 login
I’m trying to implement spotify login in my chrome extension but I get always this error and I’m able to see the auth window only when the browser is loaded for the first time. This is the code I’m using Is there any fix? I just want to access the spotify API to play users playlist in my chrome ext
Building Chrome Extensions with Vuejs and Vuecli
I’m currently building a Chrome Extension with a vuejs powered frontend. This worked pretty great using vuecli. Up until the point at which the app started using the Webextension-API. Normal websites do not have access to this API; registered Extensions do. So what’s a good setup for developing a vuejs-Extension with the power of using vuecli (which supports webpack tooling)?