.then(function () {
return $browser
.getCurrentUrl()
.then(function (currentUrl) {
//Example currentUrl type 1: WWW.example.com/SuperCategory?parameters
//Parameters can change. So i cant compare it with static URL. Need to know if i can check if currentURL contains supercategory text in it
});
})
How to check if a text if found in Current URL
That Worked. Thank you.
1 Like