google-chrome-devtools

Open Google Chrome developer tool console while C# selenium test is running, or read it programmatically

若如初见. 提交于 2019-12-07 05:25:55
问题 Is there a way to tell WebDriver in C# Selenium tests to open Chrome developer tool console, or some other way to get console to open while running Selenium tests without breaking them? Or ability to programmatically read output to the console? So far I have tried opening console manually ( CTRL + SHIFT + I ) while test is running, but that did break the test every-time. 回答1: To open chrome console: var inSim = new WindowsInput.InputSimulator() inSim.Keyboard.KeyDown(WindowsInput.Native

In Angular 8, how do I access an injected service from the browser console?

柔情痞子 提交于 2019-12-07 05:02:49
问题 I'm using Angular 8. I'd like to access an injected service from my browser console (Chrome dev tools). I can access the injector from my browser console like so ng.probe(document.querySelector('app-root')).injector I would like to access an injected service in the dev tools console but when I try this ng.probe($0).injector.get("AbcService") I get the below error. I have verified the name of my service is correct. What else do I need to do to access my service from the console? core.js:8991

Page styles break when I change styles in Chrome DevTools with Webpack HMR

社会主义新天地 提交于 2019-12-07 04:58:43
问题 I have a strange problem: I'm using Webpack (with Vue-CLI) + HMR. When I try to change styles in the browser in DevTools, then my page itself changes the styles - it removes some of them (screenshots below). I understand that the problem is in the Hot Reload Webpack, because some Vue-Components styles remain, and some are deleted. So I can not change the styles in the sidebar and I have to reload the page every time to get the styles back in place. Below is added my package.json and webpack

Chrome Dev Tools export Elements HTML

耗尽温柔 提交于 2019-12-07 04:38:00
问题 To debug my chromium-embedded application I am looking for a function to get the source code of the web page from withing the chrome developer tools. I basically want the HTML tree shown in the 'Elements' tab, the actual HTML DOM, as HTML text. Does this functionality exist? How can I use it? As I use CEF I do only have the chrome dev tools available and not the full browser. I cannot use the right-click context menu because I want to see the current manipulated DOM and not the original

Content Security Policy: cannot load Mixpanel in Chrome extension

谁说胖子不能爱 提交于 2019-12-07 04:09:52
问题 I've been struggling with this for the past day and there are little-to-no resources available online for integrating Chrome Extensions and Mixpanel. I'd like for this thread to by the one that people refer to when dealing with integrating Mixpanel into a Chrome extension. The goal of my Mixpanel integration is to be able to track events both with my content script content.js as well as my popup.js (so basically across my whole extension) I have a popup.html file that calls <script src=

AngularJS ngModelController

南笙酒味 提交于 2019-12-07 03:53:25
What is the correct way to check ngModelController validity? I have a valid controller object inside of a directive. If I log the object to the console from inside the directive I get: console.log(ctrl) $dirty: false $invalid: true $modelValue: "" $name: undefined $pristine: true $valid: false $viewValue: "" ... then, if I ask if( ctrl.$valid === true ) to log the object to the console again, it does with the exact same output. console.log(ctrl); //ctrl.$valid is false if(ctrl.$valid == true) { console.log(ctrl); //ctrl.$valid is false } additionally if I inspect the element I can see the the

How to use the Tincr Google Chrome extension for live reloading local files

天涯浪子 提交于 2019-12-07 03:40:12
问题 I have tried using the Tincr Chrome Extension now on Windows and Linux (Ubuntu) and it still does not seem to do the Live Reloading it claims to on its website when I am editing the file in an external editor. The Tin.cr website claims: Any CSS or JavaScript changes you make in any editor reloads in Chrome without refreshing the whole page To explain further, I have tried installing this extension as an unpacked extension in Chrome with Developer Mode checked under chrome://chrome/extensions/

How to set element's :hover state in Chrome dev tools and edit child's style

两盒软妹~` 提交于 2019-12-07 03:22:39
问题 Suppose we have this style: .parent .child { ... } .parent:hover .child { ... } Both selectors set style for child elements. What I would like is to edit the second style. I click on .parent and set :hover state in Chrome developer tools Click on a .child element to get to child's style but... When I click on .child the hover on parent is gone (because it's now set on .child ). This works in Firebug though but I need it in Chrome... Chrome 21.0.1180.89 m 回答1: Update : Chrome now has the

chrome 72 changes sourcemap behaviour

僤鯓⒐⒋嵵緔 提交于 2019-12-07 02:49:03
问题 I'm developing a Webextension for Chrome, the code is written in Typescript, so I need sourcemaps. The extension is bundled with ParcelJS, but I believe that my problem is not related to the bundler. After updating from Chrome 70 to 72, sourcemaps no longer work. As a minimal example, I can reproduce the problem on MacOS 14 and Ubuntu 18.04, Chrome 72 with the following code. This problem seems to be isolated to Chrome 72. Unfortunately, at the time of writing, that's the current stable

Android AVD Emulator Dev Tools for Mobile Browser?

耗尽温柔 提交于 2019-12-07 01:52:31
问题 I'm working on a mobile web app. I have a variety of devices I'm testing with but one device I do not have is an Android device running Android 2.3.x. I've resorted to using Android AVD emulators via Eclipse. It's good using the emulator for testing, however a few CSS styles of my web app render strangely in the Android 2.3.x Web Browser. Is there any way to debug or experiment with the CSS using the default Android browser in an AVD emulator? I'm not sure if it's possible to somehow examine