From de25092e709a9922ad6d84a14c9b304337d50325 Mon Sep 17 00:00:00 2001 From: Gil Meir Date: Sun, 3 May 2020 03:09:57 +0300 Subject: [PATCH] [docs] fix ReactSelector import The default import is incorrect (although it was previously used until [this commit](https://github.com/DevExpress/testcafe-react-selectors/commit/1172b89ef079872eb2b8c70fc73409764a273fec) 2 years ago) --- .../selecting-page-elements/framework-specific-selectors.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/articles/documentation/test-api/selecting-page-elements/framework-specific-selectors.md b/docs/articles/documentation/test-api/selecting-page-elements/framework-specific-selectors.md index 7ebafc7a948..41c8f459ff1 100644 --- a/docs/articles/documentation/test-api/selecting-page-elements/framework-specific-selectors.md +++ b/docs/articles/documentation/test-api/selecting-page-elements/framework-specific-selectors.md @@ -20,7 +20,7 @@ For this purpose, the TestCafe team and community developed libraries of dedicat The React selectors module provides the `ReactSelector` class that allows you to select DOM elements by the component name. You can get a root element or search through the nested components or elements. In addition, you can obtain the component props and state. ```js -import ReactSelector from 'testcafe-react-selectors'; +import { ReactSelector } from 'testcafe-react-selectors'; const TodoList = ReactSelector('TodoApp TodoList'); const itemsCountStatus = ReactSelector('TodoApp div'); @@ -130,4 +130,4 @@ test('add new item', async t => { }); ``` -To learn about the API, see the [repository documentation](https://github.com/miherlosev/testcafe-aurelia-selectors/blob/master/README.md). \ No newline at end of file +To learn about the API, see the [repository documentation](https://github.com/miherlosev/testcafe-aurelia-selectors/blob/master/README.md).