Selenium 4 - Mock Geo Location using ChromeDevTools

preview_player
Показать описание
#selenium4 #naveenautomationlabs

In this video, I have explained how to mock geo location on the basis on latitude, longitude and accuracy of a particular location. This can be achieved by ChromeDev Tools Protocol - now adopted by Selenium.

note: URL is used in this vlog, taken from Angie's examples, as I could not find other app which is supporting geolocation manipulation.

~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:
Рекомендации по теме
Комментарии
Автор

Selenium knowledge I am having is all because of you naveen!! Thank you so much!!!

Someone_
Автор

Today only I was looking and damn video came :)Thanks

shobhit
Автор

Thanks for the video and Thanks for keeping us updated

gello
Автор

Thanks for the video. This might help me in my project.

jaywantsanas
Автор

The reason for API not working with Walmart's location finder could be that Walmart website by default doesn't detect your current location (you are expected to enter your location manually).
Setting up coordinates should work only with website which detects your location and behaves accordingly.

AshishSharma-eryz
Автор

Angie Jones did a stream about that. Looks similar. Thank you.

MagDag_
Автор

Exactly this isn't working with all the websites not sure if it's an issue with website.
Thanks for making video and helping us being up to date with the latest features coming out as part of selenium.

arvindsah
Автор

Great Video Naveen. Can you please help me how to implement same feature using selenium with Python

kiranreddy
Автор

This can be done in Selenium 3 as well with the below code without using the chrome dev tools directly:
((LocationContext) getDriver()).setLocation(new Location(12.996103, 77.694975, 0));

phemasundar
Автор

Can you please instruct on how to mock in this way in C#?

krishnachaitanya
Автор

I tried for google map, even though it doesn't show on UI, but once I clicked on "you current location" button, it is taking to that point, whose coordinates are added as the parameter.

rituaparna
Автор

Please share the code as I got an error in pom.xml file in "xmlns"

rupalidhake