how to inspect redirection to a non http href using selenium

30 views
Skip to first unread message

Elad Ben David

unread,
Jan 30, 2015, 12:45:43 PM1/30/15
to seleniu...@googlegroups.com
I use selenium web-drive to test a web page that is usually shown in my android app (Android web-view).


I want to click on a button and check where will be the redirection.

The problem is that 

1) sometimes the href is static and sometimes the click just triggers an `onClick()` js method that does redirection to another page.

2) Another issue is that the redirection is sometimes an android intent.

in the format: `waze:\\`

![enter image description here][1]

I tried to click on the button and check the newUrl, but my browser isn't directing to any other page (in my case it was a static `waze://`)

What do you suggest?


Krishnan Mahadevan

unread,
Feb 1, 2015, 9:23:43 AM2/1/15
to seleniu...@googlegroups.com
I remember reading somewhere that the protocol such as “waze:\\” is normally intended to have a web view application open up a native application on the phone [ In this case, I am guessing that the link on your page causes the waze application to be opened up and some co-ordinates to be opened up ]

So I think you would need to be testing this using Selendroid on either an actual device or a simulator which also has the Waze application installed on it.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/5bcc970c-7496-43b9-a4b9-c1d6057a0809%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages