How to hide the keyboard using XCUITest API - xcuitest

I have an application where the keyboard is hiding the button that I'm trying to access. I get this error when I try to access it right now. The application doesn't support closing the keyboard with tap anywhere. Also the keyboard doesn't have any Done button usually supported in iOS keyboard.
Failed: Failed to scroll to visible (by AX action) Button, {{25.0, 500.0}, {330.0, 41.0}}, identifier: 'enrollButton', label: 'Enroll', error: Error kAXErrorCannotComplete performing AXAction kAXScrollToVisibleAction on element AX element pid: 50265, elementOrHash.elementID: 140387766398144.11

Related

How to dismiss Playwright fileChooser upon invalid file?

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 ?

Chrome Extension: Network Panel - Need to disable default question mark triggering help behavior

I am developing a Chrome extension that adds a custom devtools panel. My panel has some text boxes that allow user input, but any time I type a question mark, it opens Chrome help instead of tying the '?' character. Is there a way to stop this behavior?
UPDATE:
I should have mentioned that I'm using React in my extension and that I was using React's synthetic events.
This turned out to be unrelated to Chrome and due to a React JS nuance.
I was trying to call event.stopPropagation() on a React synthetic event which doesn't actually stop propagation to non-react registered event handlers such as the one that opens the help dialog.
The fix was to register a keydown event to the native DOM element and calling stopPropagation on the native event. This properly stoped the help menu from opening in response to typing in my input.
e.g.
<input
ref={input => input.addEventListener(event => event.stopPropagation())}
onChange={this.myOnChangeHandler}
/>

AVPlayerViewController - What is this red icon on tvOS?

We're using AVPlayerViewController on tvOS and intermittently get this icon. It's not our icon - it's from AVPlayerViewController. Does anyone know what state produces it?:
It means your player item has an error and cannot be used. Check player.currentItem.error. Your app should observe the error property and present an alert and/or take other action.

Programmatically Dismiss the Chrome Extension Post-Install Message?

On OS X, after installing a new chrome extension from the webstore, a default message in the form of a bubble (or infowindow, or tooltip) is displayed in the upper-right corner of the browser window. This message is persistent until the mouse is clicked.
This is a problem, because I want to display my own custom message via chrome.notifications upon install, but will overlap with the default message because it's also being displayed in the upper-right for OS X.
So, is there a way to programmatically dismiss the default post-install message? I tried several ways to dispatch events (click, mousedown, etc), but not having any luck because the chrome dev tool can not inspect the area of the toolbar/address bar from which the default message is being displayed. Thus, I don't know what to target.
No, you can't dismiss it with extension APIs.
It's partially a security measure - the user is informed that the thing that just got installed can be accessed and disabled from that UI location.

how to handle security error 2191 in flex

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.