# custom$$

The `customs$$` allows you to use a custom strategy declared by using `browser.addLocatorStrategy`. It returns a [`WebdriverIO.ElementArray`](/docs/api/browser/$$.md), the same list as [`$$`](/docs/api/browser/$$.md): await it, or use `for await` and the async array methods before it resolves. Read more on custom selector strategies in the [Selector docs](/docs/selectors.md#custom-selector-strategies).

## Usage[​](#usage "Direct link to Usage")

```
await browser.custom$$(strategyName, strategyArguments)
```

## Parameters[​](#parameters "Direct link to Parameters")

| Name                | Type     | Details |
| ------------------- | -------- | ------- |
| `strategyName`      | `string` |         |
| `strategyArguments` | `*`      |         |

## Example[​](#example "Direct link to Example")

example.js

```
it('should get all the plugin wrapper buttons', async () => {

    await browser.url('https://webdriver.io')

    await browser.addLocatorStrategy('myStrategy', (selector) => {

        return document.querySelectorAll(selector)

    })



    const pluginWrapper = await browser.custom$$('myStrategy', '.pluginWrapper')



    console.log(await pluginWrapper.length) // 4

})
```

## Returns[​](#returns "Direct link to Returns")

* **\<WebdriverIO.ElementArray>**
