google-chrome-devtools

Selenium switch to frame not working for Chrome 58

时光总嘲笑我的痴心妄想 提交于 2019-12-12 06:58:19
问题 After I've updated my Chrome to version 58, I cannot switch to the frame. Here is my code: driver.switchTo().frame(frameId); Tried to use another two overloaded frame() methods (that accepts index and WebElement ) - the same problem. Here is the exception: org.openqa.selenium.NoSuchFrameException: no such frame: element is not a frame (Session info: chrome=58.0.3029.110) (Driver info: chromedriver=2.28.455520 (cc17746adff54984afff480136733114c6b3704b),platform=Windows NT 10.0.14393 x86_64)

Break points on User Defined object properties in JavaScript

旧街凉风 提交于 2019-12-12 06:33:15
问题 Break points on User Defined object properties in javascript Hello Is there is any JavaScript debugging tool or addon that helps to put break points on User Defined object properties. Eg: I have a JavaScript Object Literal var TextBox = { color:"gray", size:"100px", border:true } Here is my code that does the modification function foo(){ TextBox["color"] = "blue"; } I am looking for putting a breakpoint on TextBox.color so that when the property is modified I could find who is doing the

Google Maps drag event doesn't capture center change until dragging ends in Chrome Device Mode

醉酒当歌 提交于 2019-12-12 05:29:27
问题 I'm using Angular Google Maps to include a map in my web app. I am listening to the drag event which fires successfully but the center property of the map doesn't update until the dragging stops. Is this the expected behavior? I couldn't find any docs to confirm. $scope.map = { center: $scope.currentCoords, control: {}, zoom: 15, events: {drag: function(m, e, args){mapDragged(m, e, args)}} }; var mapDragged = function(map, eventName, args){ console.log($scope.map.center); // this value only

Openssl native client port gives error on building

可紊 提交于 2019-12-12 04:56:16
问题 I am working on a simple chrome NaCl extension where I want to use the openssl library for encryption of data. I checked out the pepper_40 branch of naclports as described on the wiki page and tried to build the port for openssl but it is encountered with the following error. kunal@Baweja:~/Downloads/naclports/src$ ./make_all.sh openssl + set -e + TARGETS=openssl + TARGETS=openssl + BUILD_FLAGS=--ignore-disabled + export TOOLCHAIN + export NACL_ARCH + export BUILD_FLAGS + NACL_ARCH=x86_64 +

Reading & storing chrome Developer tool network data

萝らか妹 提交于 2019-12-12 03:59:44
问题 I want to capture Chrome developer tool network data, either using java/javascript code or using automation tool like selenium2 webdriver. 1) I want to capture name of fired event from the network tab. 2) I need to get "Request URL" (from Header) info for that particular captured name. Any thoughts would be helpful 回答1: You can't capture any data from chrome's developer console, as it's scope is not within webdriver's one. What you can really do is to use browsermob-proxy (and it's java

Is there a way to create custom network throttling profiles from a Chrome extension?

风流意气都作罢 提交于 2019-12-12 03:59:10
问题 I know that Chrome now supports network throttling form the Network tab of DevTools, but I want to create a Chrome extension that either does this itself or utilizes the existing DevTool to create a custom throttling speed. What would be the best way to go about this? 来源: https://stackoverflow.com/questions/42744575/is-there-a-way-to-create-custom-network-throttling-profiles-from-a-chrome-extens

Logging network tab automatically without opening it in Google Chrome

空扰寡人 提交于 2019-12-12 03:57:56
问题 I need to log the information shown in network tab to a file. I can do it by firing network tab first and then exporting it to a file. But is it possible to run the network tab and exporting it to a file in the background automatically whenever the Chrome is opened? Is it possible to do? 回答1: It depends on your requirement. If your extension involves DevTools, and therefore it is open, you can use the chrome.devtools.network.getHAR() method to get the network traffic. You don't need to

Chrome Inspector: Live CSS editing - won't save

ⅰ亾dé卋堺 提交于 2019-12-12 03:44:34
问题 In the Chrome Inspector - anybody know why sometimes nothing happens when you right-click on your CSS file in "Sources" and click "Save"? The "*" is still there, and my CSS file isn't being read anywhere else. If I try "Save as", it writes a new CSS file but does not include my recent changes. I'm using version 25.0.1364.97. 回答1: I am using version 25.0.1364.99 of google chrome on a Mac OSX version 10.8.2 I opened an app i recently wrote and changed with right-click --> "inspect elements"

Chrome Devtools empty file-list

巧了我就是萌 提交于 2019-12-12 03:37:33
问题 I need to inspect the website but my scripts are not listed. I already tried to uninstalled chrome and resintalled it again. If I pause javascript and trigger any javascript action it opens a VM-version of jquery but I need the real file, not the vm-loaded one. Any idea? A but or not? Any workaround? 回答1: Following the discussion from the comments above, the issue was unrelated to the web app but the environment in which the Chrome instance was run in. It was likely a Chrome Extension or

Autocomplete css classes in Chrome DevTools like in FF Developer Edition

烂漫一生 提交于 2019-12-12 03:34:00
问题 I've searched the Net for hours and days and I couldn't find the answer to a simple question: Is this possible, to use CSS classes autocomplete in Chrome DevTools but in the way that Firefox Developer Edition does it? I mean that FF css editor takes classes from currently edited CSS file AND inspected HTML document and add it to autocomplete lists. In Chrome DevTools editor takes only classes that has been already used. Is there any way or plugin to apply FF autocomplete to Chrome? Thank you