When interacting with a RichEditableText component especially when i click copy i get the following error message:
Error #2191: The Clipboard.generalClipboard object may only be written to as the result of user interaction, for example by a mouse click or button press.
The above error is reproducable sometimes in mozilla firefox browser. It is working fine in IE.
Can any one tell me how to handle that error in flex.
from google search i found that it is a bug http://tech.dir.groups.yahoo.com/group/flexcoders/message/159638.
Related
I am trying to navigate through a website using a VBA macro. I have been successful so far adapting my code off of this answer, but have come upon a situation where I need to click on a "logout" link that does not have an ID or Name when I inspect it (for reference, see below:)
Through some searching, it seems that the preferred method to find and direct VBA to click on this link is using querySelector. I've found various similar questions (see here, here, here, and here) which direct how to use it.
As a test, I simply tried the below to see if it would work:
Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
'log in, click on various elements here
Set logoutButton = ie.document.queryselector("*")
MsgBox logoutButton
Unfortunately, VBA throws Run Time Error 438 on the querySelector line, and I'm unable to understand what it is that I'm doing incorrectly.
I have added the following references to VBA:
Could someone let me know what it is I'm missing that's causing this error? Additionally, is this the method that I should be using to click the link?
Thanks!
EDIT: #QHarr has been helpful with finding out why I'm getting this issue: it's a problem with the emulation settings on Internet Explorer. querySelector will only work with document mode 9 and beyond, but my IE is defaulting to 8.
Even when I change the mode to 9 (and enable the Persist Emulation setting), it appears that my IE still opens with 8 and only changes to 9 when I check on the document mode. This causes me to still get the same error, unless I manually pause my code, check the document mode, then rerun the code.
querySelector will throw an exception if nothing is selected. Try right clicking the element and copying the css selector. Or you can write your own.
table.LoginDialog td > a:nth-child(2) might work.
It's worth setting a break point on the selector and testing them out in the Immediate window.
I am purposely loading an invalid image file (with fileChooser) to trigger a warning popup on the app I'm testing against.
This works until I dismiss the popup by clicking Ok because at that point, I know the flow is correct: the error was checked.
Now I have the browser's native file dialog hanging there: how do you guys are dismissing (or closing) that dialog ?
I am getting a error in console. it goes away with a hard refresh in chrome but I do not know where it is coming from
Uncaught TypeError: Cannot read property 'style' of null VM1701:1
If your using Chrome, open up the inspector and select the Sources tab. From there, navigate to the file that the problem is originating from and set breakpoints in places where you suspect the problem might be by clicking the line numbers on the left side. After setting a few breakpoints, refresh the page and the code will run and pause each time it reaches one of your breakpoints. When it pauses you can also look and see what the code is doing at that point. If it reached the breakpoint before the error then you know that's not where the error is. From that you can work on narrowing down where your problems are.
I have recently started to see a frequent error in Chrome Dev Tools when right clicking on an element for the purposes of selecting "Inspect Element" - instead of selecting the element on the "Elements" tab the error "Uncaught Error: Parameter 2 (message) is required." appears in the "Sources" tab for a virtual "extensions:: schemaUtils" script.
The error occurs in the function "validate" as per the screenshot below.
This error seems to occur since installing the "OneTab" extension, and indeed goes away when I disable it. I have reported it to the extension author, so far without response. Unfortunately as work have seen fit to issue me with an underpowered machine, removing OneTab is not an option as memory otherwise runs in extremely short supply.
The issue is easy to replicate, within Stack Overflow itself click on the "StackExchange" icon top left, and then right click on one of the "Your Communities" items. The context menu does not open and the above error appears. This also affects the pop-out menus on the primary product I am working on.
This error only occurs in a single instance of Chrome, which happens to be my primary developer machine, and does not occur on Chrome Canary on the same computer, and with the same extension installed.
Chrome 37.0.2024.2m on a Windows 7 Professional, Service Pack 1, x64 laptop.
Do I have a corrupted copy of Chrome? Can other users replicate this error (with or without the OneTab extension)? Is there anything short of removing the extension permanently that I can do to restore essential "Inspect Element" functionality?
I have already tried resetting Chrome within the settings menu.
The problem you're experiencing is that a breakpoint is triggered for (uncaught) errors.
To stop this from happening, open the Sources tab of the developer tools, and make sure that the circle with the two stripes in it is GREY, not blue. This circle means "Pause on exception" and is the right-most icon in the next picture.
Just stating more clearly : if you are ok with that, just disable the OneTab Chrome extension.
de-activating and re-activating breakpoints in the devtools solved my issue
The breakpoints icon is in Developer Tools, on the Sources tab, the icon left of the pause button.
I also use OneTab, am on OSX 10.10.5, Google Chrome Version 46.0.2490.71 (64-bit) - other extensions I have installed are LastPass, Xdebug helper, JetBrains, Postman, DevTools Theme: Zero Dark Matrix, Google Docs (and similar)
The breakpoints solution was suggested here https://stackoverflow.com/a/25623760/1875965
You started the validation at i + 1, it should be i.
Change:
var message = "Invalid Argument for " + (i + 1) + ".";
Into:
var message = "Invalid Argument for " + (i) + ".";
I have recently started to see a frequent error in Chrome Dev Tools when right clicking on an element for the purposes of selecting "Inspect Element" - instead of selecting the element on the "Elements" tab the error "Uncaught Error: Parameter 2 (message) is required." appears in the "Sources" tab for a virtual "extensions:: schemaUtils" script.
The error occurs in the function "validate" as per the screenshot below.
This error seems to occur since installing the "OneTab" extension, and indeed goes away when I disable it. I have reported it to the extension author, so far without response. Unfortunately as work have seen fit to issue me with an underpowered machine, removing OneTab is not an option as memory otherwise runs in extremely short supply.
The issue is easy to replicate, within Stack Overflow itself click on the "StackExchange" icon top left, and then right click on one of the "Your Communities" items. The context menu does not open and the above error appears. This also affects the pop-out menus on the primary product I am working on.
This error only occurs in a single instance of Chrome, which happens to be my primary developer machine, and does not occur on Chrome Canary on the same computer, and with the same extension installed.
Chrome 37.0.2024.2m on a Windows 7 Professional, Service Pack 1, x64 laptop.
Do I have a corrupted copy of Chrome? Can other users replicate this error (with or without the OneTab extension)? Is there anything short of removing the extension permanently that I can do to restore essential "Inspect Element" functionality?
I have already tried resetting Chrome within the settings menu.
The problem you're experiencing is that a breakpoint is triggered for (uncaught) errors.
To stop this from happening, open the Sources tab of the developer tools, and make sure that the circle with the two stripes in it is GREY, not blue. This circle means "Pause on exception" and is the right-most icon in the next picture.
Just stating more clearly : if you are ok with that, just disable the OneTab Chrome extension.
de-activating and re-activating breakpoints in the devtools solved my issue
The breakpoints icon is in Developer Tools, on the Sources tab, the icon left of the pause button.
I also use OneTab, am on OSX 10.10.5, Google Chrome Version 46.0.2490.71 (64-bit) - other extensions I have installed are LastPass, Xdebug helper, JetBrains, Postman, DevTools Theme: Zero Dark Matrix, Google Docs (and similar)
The breakpoints solution was suggested here https://stackoverflow.com/a/25623760/1875965
You started the validation at i + 1, it should be i.
Change:
var message = "Invalid Argument for " + (i + 1) + ".";
Into:
var message = "Invalid Argument for " + (i) + ".";