I have a webpage in which it has links on click of it a new browser opens now i need to get the url of the new browser and compare it where it opening the right page or not..
This is how im doing:
i have excel sheet which gets me the linkname to be clicked and then expected url
i have added the new browser page in the OR and using getroproperty(url)i get the url which is opening and then im comparing this with the expected value.
This which works fine for most of the urls but the problem i'm facing is for the url which opens it adds a '/' at the end of the url what i mean is ".....com/" where as from the OR the url shows up as ".....com"
and so this fails.....is there any other way we can capture the exact url for the new browser or any other better way of doing this...