using String URL = driver.getCurrentUrl(); I get something like this: ...firstname=&lastname=&sex=Male&exp=1&datepicker=11%2F30%2F2020&photo=&contine