Quantcast
Channel: MarsHut
Viewing all articles
Browse latest Browse all 6551

Protractor and $location methods

$
0
0
Hi,

I'm just starting with Protractor, but is there any reason why only
"$location.absUrl" method is exposed via "getLocationAbsUrl" method? What
about other $location methods like "url", "path" and so on? When testing
routes I need to create protractor instance just to get base url and then
manually concatenate it with expected path. It would be much easier if I
could simply get path itself. If there's no particular reason why these
other methods are missing, how can I extend "clientSideScripts" to add them
myself?

Cheers,
Szymon

Viewing all articles
Browse latest Browse all 6551

Trending Articles