Is there a way to generate E2E UI tests by providing the web page URL as context?

We were trying to create end to end UI tests for our website. We tried giving it the page URL with @page_url so that AI would have the context to select the right selectors for the test. However, it doesn’t seem to work. Is there a way to make this work?