Any help to validate a parameter in the url using selenium web driver + java
getCurrentUrl() = https://www.loca.com/usa/test/#/xxx
My url string is as above, and based on the url I need to enter a value on the loaded page, like lets say - I have zipcode field to enter zipcode value.
If url string contains 'usa' Enter zipcode as 12345 if url string contains canada Enter zipcode as Ab1233