I have a URL I am attempting to verify through my test, basically I click on the image of a product and it takes me to the item description page. At the end URL string for this items description page, there is an added (addthis.com) string for social media purposes. My question is how can I assert the URL if it changes browser to browser and session to session?
url + "/shop/en-US/products/berry-blue#.VXCXwEb0_-s"
Assert.AreEqual(url + "/shop/en-US/products/berry-blue#.VXCXwEb0_-s", driver.Url);
The string at the end "VXCXwEb0" is what is changed dynamically. Is there anyway to assert this URL while ignoring these characters?