How do I convert the selector string that I copy from chrome by using Inspect > Copy > Copy Selector
to something that I can use inside of a testCafe Selector?
Chrome gives me this:
body div#root div div.fullindy div.container div.row div.col-md-8 div form div.bd-graybackground.padding-64 div.row div.col-md-6 div.row div.col-md-6 div div.form.form-group div.css-10nd86i.clickable.normal-subheader div.css-1aya2g8 div.css-1rtrksz div.css-va7pk8
This does not return css-va7pk8
selector object that has a text value that I need to check.
This works:
Selector('form').find('.row').sibling().sibling(3).child(1).find('.row').child().find('div').child(1);
But this is very time consuming trying to figure out how to traverse a complex DOM. There has to be a faster way using the available features of Chrome and testCafe.