当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript Node.Remote类代码示例

本文整理汇总了TypeScript中intern/lib/executors/Node.Remote的典型用法代码示例。如果您正苦于以下问题:TypeScript Remote类的具体用法?TypeScript Remote怎么用?TypeScript Remote使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Remote类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: getPage

function getPage(test: Test) {
	const { browserName = '' } = test.remote.environmentType!;
	if (browserName.toLowerCase() === 'microsoftedge') {
		test.skip('example page currently doesn\'t work in edge.');
	}
	const remote: Remote = test.remote;
	return remote
		.get(`http://localhost:9000/_build/common/example/?id=${uuid()}#range-slider`)
		.setFindTimeout(5000);
}
开发者ID:dojo,项目名称:widgets,代码行数:10,代码来源:RangeSlider.ts

示例2: getPage

function getPage(test: any) {
	const { browserName } = test.remote.environmentType;
	if (browserName.toLowerCase() === 'microsoftedge') {
		test.skip('example page currently doesn\'t work in edge.');
	}
	const remote: Remote = test.remote;
	return remote
		.get('http://localhost:9000/_build/common/example/?module=slider')
		.setFindTimeout(5000);
}
开发者ID:bitpshr,项目名称:widgets,代码行数:10,代码来源:Slider.ts

示例3: openDialog

function openDialog(remote: Remote, { closeable = true, modal, underlay }: Options = {}) {
	let promise = remote
		.get(`http://localhost:9000/_build/common/example/?id=${uuid()}#dialog`)
		.setFindTimeout(5000);

	if (!closeable) {
		promise = promise
			.findById('closeable')
				.click()
				.end();
	}

	if (modal) {
		promise = promise
			.findById('modal')
				.click()
				.end();
	}

	if (underlay) {
		promise = promise
			.findById('underlay')
				.click()
				.end();
	}

	return promise
		.findById('button')
			.click()
			.end()
		.sleep(DELAY);
}
开发者ID:bryanforbes,项目名称:widgets,代码行数:32,代码来源:Dialog.ts

示例4: clickDate

function clickDate(remote: Remote) {
	return remote
		.get('http://localhost:9000/_build/common/example/?module=calendar')
		.setFindTimeout(5000)
		.findByCssSelector(`tbody > tr:first-child > td:nth-child(${firstDay + 1})`)
			.click()
			.sleep(DELAY)
			.end();
}
开发者ID:dylans,项目名称:widgets,代码行数:9,代码来源:Calendar.ts

示例5: openYearPicker

function openYearPicker(remote: Remote) {
	return remote
		.get('http://localhost:9000/_build/common/example/?module=calendar')
		.setFindTimeout(5000)
		.findByCssSelector(`.${css.yearTrigger}`)
			.click()
			.sleep(DELAY)
			.end();
}
开发者ID:dylans,项目名称:widgets,代码行数:9,代码来源:Calendar.ts

示例6: openMonthPicker

function openMonthPicker(remote: Remote) {
	return remote
		.get(`http://localhost:9000/_build/common/example/?id=${uuid()}#calendar`)
		.setFindTimeout(5000)
		.findByCssSelector(`.${css.monthTrigger}`)
			.click()
			.sleep(DELAY)
			.end();
}
开发者ID:bryanforbes,项目名称:widgets,代码行数:9,代码来源:Calendar.ts

示例7: clickDate

function clickDate(remote: Remote) {
	return remote
		.get(`http://localhost:9000/_build/common/example/?id=${uuid()}#calendar`)
		.setFindTimeout(5000)
		.findByCssSelector(firstDayCssSelector())
			.click()
			.sleep(DELAY)
			.end();
}
开发者ID:dojo,项目名称:widgets,代码行数:9,代码来源:Calendar.ts

示例8: openYearPicker

function openYearPicker(remote: Remote) {
	return remote
		.get(`http://localhost:9000/_build/common/example/?id=${uuid()}#calendar`)
		.setFindTimeout(5000)
		.findByClassName(css.yearTrigger)
			.click()
			.sleep(DELAY)
			.end();
}
开发者ID:dojo,项目名称:widgets,代码行数:9,代码来源:Calendar.ts

示例9: openSlidePane

function openSlidePane(remote: Remote, alignRight?: boolean) {
	let promise = remote
		.get('http://localhost:9000/_build/common/example/?module=slidepane')
		.setFindTimeout(5000)
		.findById('underlay')
			.click()
			.end();

	if (alignRight) {
		promise = promise
			.findById('alignRight')
				.click()
				.end();
	}

	return promise
		.findById('button')
			.click()
			.end()
		.sleep(DELAY);
}
开发者ID:bitpshr,项目名称:widgets,代码行数:21,代码来源:SlidePane.ts

示例10: getPage

function getPage(remote: Remote) {
	return remote
		.get('http://localhost:9000/_build/common/example/?module=tabcontroller')
		.setFindTimeout(5000);
}
开发者ID:bitpshr,项目名称:widgets,代码行数:5,代码来源:TabController.ts


注:本文中的intern/lib/executors/Node.Remote类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。