How to parse url with puppeteer?

hello i have a question how to capture the url with puppeteer ?

1 Like

The url of the page is in the variable

data.ADDRESS

the same you would use for http request blocks

sure after the request i added this block to capture the url but nothing return

BLOCK:Parse
  input = @data.ADDRESS
  MODE:LR
  => VAR @address
ENDBLOCK

Are you using latest OB2? Because this doesn’t work with early versions.
Otherwise you can use execute js and type return window.location.

1 Like

yes i use last version of ob2, but your tips with js works perfectly thanks for the help

Weird, it should have worked as you can see from the code

Were you using NavigateTo or another block?

yes i used navigate to