Closed shobhitchittora closed 5 years ago
Might be related to how @medv/finder gives us a selector here.
@tnolet Any thoughts on this?
Hey @shobhitchittora this seems like a bit of a corner case, but more control over what classes are used to record clicks etc. is certainly coming. This does not guarantee your case will work. Honestly, I've never seen extra classes added on focus. Normally you add a pseudo class, i.e. :hover etc. to change styling.
I've a lot of input element of the page with the same class called
Input
. Also these Input components have aInput-focus
classname attached to them when the user focuses the element. Now while tabbing through and filling the forms, this focus class is getting picked up by the recorder. While running the script then, since this dynamic class is not there in the dom, puppeteer is unable to find the input element through the selector.JSFiddle example - https://jsfiddle.net/shobhitchittora/23t0wed5/