How to use the testcafe.t.click_dropdown_item function in testcafe

To help you get started, we’ve selected a few testcafe examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github frappe / video / lib / form.js View on Github external
async click_toolbar_button(text) {
		let button_text, dropdown_item;

		if (text.includes(':')) {
			[button_text, dropdown_item] = text.split(":")
		} else {
			button_text = text;
		}

		await this.click_element('.form-inner-toolbar .btn', button_text);

		if (dropdown_item) {
			await t.wait(1000);
			await t.click_dropdown_item(dropdown_item)
		}
	},