tomgallagher / RecordReplay

Automated functional testing via the Chrome DevTools Protocol. Easy to use and open source. Generates unique CSS and Xpath selectors. Outputs code for multiple testing frameworks, including Jest, Puppeteer, Selenium Webdriver and Cypress.
Apache License 2.0
52 stars 10 forks source link

Dynamic URL location support #10

Open Kamalen opened 3 years ago

Kamalen commented 3 years ago

I have a wizard-style Angular application, who begins with /create and then routes to "/wizard/SOME_ID/SOME_PAGE"

However, because the location part is a strict string when recording, I am unable to replay any recording in my app ; nothing triggers since new routes don't match the original recording ID in the URL (error: Event Replayer: http://localhost:4200: Not Replaying replayEvent#66521#1628779956454 from Unmatched Path)

Is there a way to disable the location enforcment ?

tomgallagher commented 3 years ago

No unfortunately. The location is required to distinguish between pages, iframes for replay. I've not seen dynamic URLs before so didn't even consider it in design. Sorry.