Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Mar 22, 2022
1 parent 58204ea commit 290f331
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,10 @@ Now you can create a page object as following:
```ts
// e.g. in /test/pageobjects/loginForm.ts
import { PluginDecorator, IPluginDecorator, BasePage } from 'wdio-vscode-service'
import { componentA as componentALocators } from './locators'

import * as locatorMap, { componentA as componentALocators } from './locators'
export interface LoginForm extends IPluginDecorator<typeof componentALocators> {}
@PluginDecorator(componentALocators)
export class LoginForm extends BasePage<typeof componentALocators> {
export class LoginForm extends BasePage<typeof componentALocators, typeof locatorMap> {
/**
* @private locator key to identify locator map (see locators.ts)
*/
Expand Down

0 comments on commit 290f331

Please sign in to comment.