Closed jtizol closed 5 years ago
Hi @jtizol this is actually already implemented, just in a slightly different way. You can provide a custom data-* attribute in the settings. Puppeteer Recorder will then use that instead of the standard selectors. You would just need to instrument your code with this attribute of course.
@tnolet Are you saying that the div attr needs to be formatted with "data-name" attr? We've built the entire site using just the "name" attr. It would be really difficult to change everything at this point. Is there no way to just point the block builder to look at the "name" attr rather than "id"?
@jtizol that's what I'm saying, yes. the data-xxx
is a very common pattern. Sorry, don't think there is another way right now.
@tnolet understood. Thank you for the feedback.
Hey guys, anyone know the level of effort to adjust the block building to select elements by attr "name" rather than id?
I am struggling with a page that dynamically assigns div IDs and it is unreliable to select by ID
from:
to: