--------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
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 };
|