@@ -36,7 +36,6 @@ export async function clickPinContextButton(webview: WebviewView): Promise<void>
3636 * @returns Promise<boolean> Returns the items as a WebElement List and the labels in a string array
3737 */
3838export async function getPinContextMenuItems ( webview : WebviewView ) : Promise < { items : WebElement [ ] ; labels : string [ ] } > {
39- await sleep ( 1000 )
4039 const items = await webview . findElements (
4140 By . xpath ( `//div[contains(@class, 'mynah-detailed-list-item') and contains(@class, 'mynah-ui-clickable-item')]` )
4241 )
@@ -65,7 +64,6 @@ export async function getPinContextMenuItems(webview: WebviewView): Promise<{ it
6564 * NOTE: To find all possible text labels, you can call getPinContextMenuItems
6665 */
6766export async function clickPinContextMenuItem ( webview : WebviewView , itemName : string ) : Promise < void > {
68- await sleep ( 100 )
6967 const item = await waitForElement (
7068 webview ,
7169 By . xpath (
@@ -81,7 +79,6 @@ export async function clickPinContextMenuItem(webview: WebviewView, itemName: st
8179 * @returns Promise<boolean> Returns the items as a WebElement List and the labels in a string array
8280 */
8381export async function getSubMenuItems ( webview : WebviewView ) : Promise < { items : WebElement [ ] ; labels : string [ ] } > {
84- await sleep ( 100 )
8582 const items = await webview . findElements (
8683 By . xpath ( `//div[contains(@class, 'mynah-detailed-list-item') and contains(@class, 'mynah-ui-clickable-item')]` )
8784 )
@@ -109,7 +106,7 @@ export async function getSubMenuItems(webview: WebviewView): Promise<{ items: We
109106 * NOTE: To find all possible text labels, you can call getPinContextMenuItems
110107 */
111108export async function clickSubMenuItem ( webview : WebviewView , itemName : string ) : Promise < void > {
112- await sleep ( 100 )
109+ await sleep ( 0 )
113110 const item = await waitForElement (
114111 webview ,
115112 By . xpath (
0 commit comments