12 lines
296 B
TypeScript
12 lines
296 B
TypeScript
|
|
import { ViewportPageObject } from '../pages/ViewportPageObject';
|
||
|
|
|
||
|
|
const getSvgPath = async (viewportPageObject: ViewportPageObject, viewportId = 'default') => {
|
||
|
|
return viewportPageObject
|
||
|
|
.getById(viewportId)
|
||
|
|
.svg('path')
|
||
|
|
.first()
|
||
|
|
.getAttribute('d');
|
||
|
|
};
|
||
|
|
|
||
|
|
export { getSvgPath };
|