google-chrome-devtools

org.openqa.selenium.WebDriverException: disconnected: received Inspector.detached event error during test execution using Selenium and Chromedriver

会有一股神秘感。 提交于 2021-02-16 21:07:49
问题 I know that Selenium is an automated testing tool, but i'm trying to use it for RPA instead (things to do with my work environment) I've gotten the java code down, and it runs exactly how i want it. It takes data from an excel sheet, converts the data into java objects, then enters data into a web application. It works fine for the first 20-25 entries, then starts to slow down, and eventually crashes the application. I have a few thousand rows to enter. I've tried starting the chrome

org.openqa.selenium.WebDriverException: disconnected: received Inspector.detached event error during test execution using Selenium and Chromedriver

霸气de小男生 提交于 2021-02-16 21:07:03
问题 I know that Selenium is an automated testing tool, but i'm trying to use it for RPA instead (things to do with my work environment) I've gotten the java code down, and it runs exactly how i want it. It takes data from an excel sheet, converts the data into java objects, then enters data into a web application. It works fine for the first 20-25 entries, then starts to slow down, and eventually crashes the application. I have a few thousand rows to enter. I've tried starting the chrome

Permissions for modifying DOM in Chrome extension context menu

梦想的初衷 提交于 2021-02-11 14:41:38
问题 I have intermediate knowledge of chrome extension development. Context: Manifest has activeTab and contextMenus permissions. Clicking context menu item should inject content into DOM This works fine for regular web pages, but fails on default Chrome PDF viewer with the following error: Cannot access contents of the page. Extension manifest must request permission to access the respective host. However, if I inject the content first using a key command, then modify that content in the context

Chrome DevTools: files lose link with workspace

北战南征 提交于 2021-02-10 20:28:30
问题 Javascript files loaded into Google Chrome DevTools often lose their link with the workspace (the green dot disappears) when I'm revising code. The effect is that simple saves no longer work (I have to use 'save as' from the right-click menu) and debugging often stops. Using the 'Add folder to workspace' button has no effect. I have to close DevTools down and reopen it, a considerable nuisance. I've looked around online but can't see any reports of this happening to others. Is this a known

how to get the Callback from chrome.runtime.sendMessage in Angular 4?

别来无恙 提交于 2021-02-10 06:26:31
问题 I am really new working with Angular 4 and Chrome Extensions, but I have this code to comunicate my app in Angular with the Chrome extension. Code in Angular 4. public myObjectExtension : any; public getObjectChrome(){ chrome.runtime.sendMessage(extensionID, 'getObject', function(response) { console.log(response); this.myObjectExtension = reponse; }); } and I have this in my Chrome Extension. chrome.runtime.onMessageExternal.addListener( function(request, sender, sendResponse) { if(request ==

Debugging multiple load and DomContentLoad lines in Chrome Developer Tools Network Tab

邮差的信 提交于 2021-02-09 00:42:34
问题 In the Chrome Developer Tools network tab, there are times for Load and DomContentLoaded. These are marked as a red line and a blue line in the network tools. https://developer.chrome.com/devtools/docs/network When analysing some websites, multiple Load and DomContentLoaded event load marker lines appear with the later line updating the final Load and DomContentLoad times in the bottom bar. I am trying to understand why there are multiple event marker lines as the documentation says they

Debug service worker with Chrome on Android mobile

倖福魔咒の 提交于 2021-02-08 23:38:54
问题 I'm developing a progressive webapp and, in order to make sure it's working on mobile device (and particularly on Chrome for Android as it's 90% of users), I'm trying to test service worker on an Android device. Unfortunaltely, on Chrome for Android , I'm unable to register the service worker : An SSL certificate error occurred when fetching the script. Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID I know service worker needs to be served over HTTPS so I have a self-signed

Double request when chrome developer tools open

主宰稳场 提交于 2021-02-08 12:59:33
问题 I've an odd problem, i have a very simple node/expressjs app ( i have a much more complex one but this simple example shows the problem ). This app has three routes as shown here: var i = 0; app.route('/login') .get(function(req, res){ console.log('login', ++i); res.send('login'); }) app.route('/test') .get(function(req, res){ console.log('test', ++i); res.send('test'); }) app.route('/') .get(function(req, res){ console.log('index', ++i); res.send('index'); }) Pretty simple. Any time one of

Maximum number of breakpoints in Chrome?

孤者浪人 提交于 2021-02-07 20:27:17
问题 Does anyone know what the limit is on the maximum number of breakpoints that can be set with Google Chrome's Web Inspector? Thanks. 回答1: The number of breakpoints is only limited by your hardware resources (memory for storing them and CPU for quickly handling this lot of DOM elements.) 回答2: As far as I know there is no explicit limit for the number of breakpoints. However you should expect that some algorithms are not well optimized for a large number of breakpoints, e.g. some internal

Maximum number of breakpoints in Chrome?

半腔热情 提交于 2021-02-07 20:26:52
问题 Does anyone know what the limit is on the maximum number of breakpoints that can be set with Google Chrome's Web Inspector? Thanks. 回答1: The number of breakpoints is only limited by your hardware resources (memory for storing them and CPU for quickly handling this lot of DOM elements.) 回答2: As far as I know there is no explicit limit for the number of breakpoints. However you should expect that some algorithms are not well optimized for a large number of breakpoints, e.g. some internal