let foundTitles = $$(`[_ngcontent-c1]>[class*="flex"] [class*="ellipsis"]>a`);
Locator [class*="flex"] potentially can be triggered for element: <dib class="flexible"> or <dib class="unflex"> since it does include logic for string, instead of . selector - $('.flex') which does searching by class more safely and correctly - by splitting by space and then full match.
Your code:
Locator
[class*="flex"]
potentially can be triggered for element:<dib class="flexible">
or<dib class="unflex">
since it doesinclude
logic for string, instead of.
selector -$('.flex')
which does searching by class more safely and correctly - by splitting by space and then full match.https://github.com/delfin123/5-startit-movie-finder-delfin123/blob/master/Hometask3/search.ts#L23 https://github.com/delfin123/5-startit-movie-finder-delfin123/blob/master/Hometask3/search.ts#L37