blob: c3286b854e374a6f1161667de5c374be5627e06c [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {waitFor} from '../../shared/helper.js';
export const LAYERS_TAB_SELECTOR = '#tab-layers';
export async function getCurrentUrl() {
await waitFor('[aria-label="layers"]');
const element = await waitFor('[aria-label="layers"]');
return element.evaluate(e => e.getAttribute('test-current-url'));
}