mirror of
https://github.com/xodio/xod.git
synced 2026-03-06 16:56:52 +01:00
11 lines
285 B
JavaScript
11 lines
285 B
JavaScript
import BasePageObject from './BasePageObject';
|
|
|
|
class Link extends BasePageObject {}
|
|
|
|
export default Link;
|
|
|
|
export const getLinksOfType = async (page, linkType) => {
|
|
const elementHandles = await page.$$(`.Link.${linkType}`);
|
|
return elementHandles.map(eh => new Link(page, eh));
|
|
};
|