How to get around error Uncaught (in promise) TypeError in Google reCaptcha v2? - recaptcha

After clicking on the checkbox and selecting all the pictures in the popup, the checkbox is marked with a green arrow and that's it. Nothing goes anywhere, and the console displays Uncaught (in promise) TypeError. Before this it worked all day and then suddenly stopped.

Related

In Google Chrome how to disable popup box that ask 'Phone to call with'

In Google Chrome when I click on an anchor "a" element with "tel:" in href it always open the popup to call with a phone. It make conflicts with an extension I want to use to manage calls!
Sometimes it fires the extension and sometimes it fires the chrome popup, it seems to be related on how the data comes loaded by the site (direct load by the page or asyncronus with ajax).
How to disable the default "call with" by Google Chrome ?

Clipboard.js not copying in Safari or Firefox

Clipboard.js is working well in Chrome (v50.0), but won't copy text on Firefox (v46.0).
clipboard.on('error', function(e){...}) is being thrown, and clipboardjs is supported on v41+, but the error provides no information beyond providing which button was clicked to trigger the copy.
Any ideas what could be happening here or what I could check/try?
in the documentation it says that it's not supported in safari
Although copy/cut operations with execCommand aren't supported on
Safari yet (including mobile), it gracefully degrades because
Selection is supported.
That means you can show a tooltip saying Copied! when success event is
called and Press Ctrl+C to copy when error event is called because the
text is already selected.
For a live demonstration, open this site on Safari.
to get information about what was clicked check the trigger
clipboard.on('error', function(e) {
console.error('Action:', e.action);
console.error('Trigger:', e.trigger);
});

Xcode UI Testing Remote Button Error: Failed to find focused element

I'm trying to test UI of an app on Apple TV, however every time I press a UIButton in the UI, I immediately get an error:
"Remote Button Error: Failed to find focused element".
This happens while recording the test.
What can cause the problem, how to solve it?
This is a problem with your app code. When you move to a new view on Apple TV, the focused element should be set on the new view.
Your error indicates that no element has been given focus after you press the button.
Focus enables users to see what is currently selected and should involve some sort of visual indication, like having the focused view move towards the user in the Z-axis.

Browser IE :clicking on alert ok causes the dijit dialog in background to hide away visually

I have a dijit dialog that pops up on clicking of a button. This dialog has a button which stands for submitting and one to hide the dialog On click of ok it sends a REST call and gets a response.
On error, an alert box is generated.
But what is happening here in IE 8 is that I need to explicitly again call a showdialog method to retain the dialog on screen.
What is expected behaviour is: when error occurs an alert box pops up and on click of ok the dialog in background retains. But this is not occuring normally. So I need to everytime check response and make an explicit call to show that dialog. If I do not call an explicit showdialog, the dialog simply visually seems nowhere(Gone!).
This is not a requirement if I use other browsers like chrome and FF which retain the dialog unless user himself cancels and hides them.
This explicit calling may not have been a problem unless it caused the blink effect. That is it has some delay and then shows( a sec or two after ok click on alert).
Further adding to the woe is that when this error scenario occurs and if user after clicking ok and then getting the dialog again after a blink follows and clicks cancel on dialog....poof! the behind screen that originally triggered that dialog still remains blurred! Hanging the browser!
Thanks & yes need a help, stuck on this!

Selenium: Clicking link and alert acting weird (flashing then disappearing)

I'm writing an automated test against a Salesforce site. I'm using Firefox version 21.0 and Selenium version 2.33.0.
During the test, I have a couple of alerts to deal with (with one "okay" button) and do so successfully. The alerts behaves normally.
Later in the test, in a table, there is a delete link. When it is clicked, an alert appears saying "Are you sure?" with two options, OK and Cancel. Clicking OK should delete that row in the table.
But when I run the automated test, after clicking on the link, the alert very quickly flashes on and then disappears. The row has not been deleted. It is there and has a blue background (as it does when the mouse is hovered over the row). The popup disappearing is nothing to do with the code that follows clicking the link, as I have tried putting a big sleep in between and it still happens.
I am running the test in Firefox, could it be an issue with firefox? I tried running it in Chrome instead, but then the test keeps failing at an earlier point because it cant find an element which firefox can.
Below is the method I run to handle alerts. But I don't think the problem is to do with this, because it happens before this code is run. This method runs immediately after the clicking of the link...
private void acceptAlert() {
String mainWindow = webdriver.getWindowHandle();
WebDriverWait wait = new WebDriverWait(webdriver, 20);
wait.until(ExpectedConditions.alertIsPresent());
Alert alert = webdriver.switchTo().alert();
alert.accept();
webdriver.switchTo().window(mainWindow);
}

Resources