本文整理匯總了TypeScript中@ephox/agar.RealMouse.cClick方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript RealMouse.cClick方法的具體用法?TypeScript RealMouse.cClick怎麽用?TypeScript RealMouse.cClick使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@ephox/agar.RealMouse
的用法示例。
在下文中一共展示了RealMouse.cClick方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: TinyApis
TinyLoader.setup(function (editor, onSuccess, onFailure) {
const api = TinyApis(editor);
const ui = TinyUi(editor);
// Cut doesn't seem to work in webdriver mode on ie, firefox is producing moveto not supported, edge fails if it's not observed
Pipeline.async({}, (platform.browser.isIE() || platform.browser.isFirefox() || platform.browser.isEdge()) ? [] :
Log.steps('TBA', 'Paste: Set and select content, cut using edit menu and assert cut content', [
api.sSetContent('<p>abc</p>'),
api.sSetSelection([0, 0], 1, [0, 0], 2),
ui.sClickOnMenu('Click Edit menu', 'button:contains("Edit")'),
Chain.asStep({}, [
ui.cWaitForUi('Wait for menu item', '[role="menuitem"]:contains("Cut")'),
RealMouse.cClick()
]),
Waiter.sTryUntil('Cut is async now, so need to wait for content', api.sAssertContent('<p>ac</p>'), 100, 1000)
]), onSuccess, onFailure);
}, {