CTG Join our team Why CTG Back
Why CTG

We collaborate with clients to enhance digital agility, solving today's problems while preparing for future shifts.

Learn more

About Us

Delve into the values, mission, and vision that drive our company.

Partners

Explore our tech and industry partners, who amplify the value we provide.

CTG, a Cegeka Company

Learn more about our parent company, Cegeka, a global IT provider.

Corporate Responsibility

Read more about our commitment to being a good corporate citizen.

Culture

Discover the workplace culture we've built that makes CTG a great place to work.

Careers

Check out our employee benefits and start your career journey with CTG.

Learn More

Our Locations

Leadership Team

Company News

Events

Solutions Back

Applications

Empowering businesses with modern, scalable, efficient apps.

Cloud

Supporting all phases of your cloud journey.

Business Solutions

Offering Cegeka's MS Dynamics 365 solutions for pharma and life sciences.

Data

Enabling data-driven decision making and increased efficiency.

Service Desk

Providing 24x7 support with an exceptional end-user experience.

Talent

Rapidly delivering IT and business talent to accelerate digital initiatives.

Automation and AI

Leveraging tech to increase efficiency, lower costs, and empower employees.

Infrastructure

Laying the groundwork for a successful digital organization.

Advisory Services

Combining industry and tech expertise to align technology with business needs.

Testing

Ensuring the quality and reliability of enterprise software.

Cybersecurity

Enhancing the cyber resilience of your organization.

Industries Back
Industries

Our digital solutions are customized for the unique challenges, requirements, and regulations each industry we serve faces.

Explore industries

Healthcare

Addressing IT and operations challenges to enable organizations to better serve patients and members.

Pharma and Life Sciences

Offering Cegeka’s Microsoft Dynamics 365 and Power Platform solutions to navigate industry and regulatory challenges.

Energy

Empowering energy organizations to thrive with data-driven insight and process innovation.

Government

Modernizing operations to improve citizen engagement and service delivery for all levels of government.

Manufacturing

Enabling seamless, efficient operations and increased speed to market with enterprise apps.

Finance and Insurance

Meeting the industry's need for enhanced efficiency, automation, compliance, and customer experiences.

Insights Back
Insights

We're thrilled to share our insights and expertise with you. Learn about industry trends, how to navigate common challenges, client success stories, and more.

Case Studies

Learn how we collaborate with clients to ensure their success.

Videos

Explore videos about CTG’s solutions, client testimonials, and more.

Blogs

Read blogs about tech, innovation, business, employees, and more.

News

View company news and insights from our experts in top publications.

Resources

View e-books, white papers, guides, infographics, and more.

Webinars

Learn from our experts, based on real-world experience across industries.

Contact us
CTG Why CTG
Why CTG

We collaborate with clients to enhance digital agility, solving today's problems while preparing for future shifts.

Learn more

About Us

Delve into the values, mission, and vision that drive our company.

Partners

Explore our tech and industry partners, who amplify the value we provide.

CTG, a Cegeka Company

Learn more about our parent company, Cegeka, a global IT provider.

Corporate Responsibility

Read more about our commitment to being a good corporate citizen.

Culture

Discover the workplace culture we've built that makes CTG a great place to work.

Careers

Check out our employee benefits and start your career journey with CTG.

Learn More

Our Locations

Leadership Team

Company News

Events

Solutions

Applications

Empowering businesses with modern, scalable, efficient apps.

Cloud

Supporting all phases of your cloud journey.

Business Solutions

Offering Cegeka's MS Dynamics 365 solutions for pharma and life sciences.

Data

Enabling data-driven decision making and increased efficiency.

Service Desk

Providing 24x7 support with an exceptional end-user experience.

Talent

Rapidly delivering IT and business talent to accelerate digital initiatives.

Automation and AI

Leveraging tech to increase efficiency, lower costs, and empower employees.

Infrastructure

Laying the groundwork for a successful digital organization.

Advisory Services

Combining industry and tech expertise to align technology with business needs.

Testing

Ensuring the quality and reliability of enterprise software.

Cybersecurity

Enhancing the cyber resilience of your organization.

Industries
Industries

Our digital solutions are customized for the unique challenges, requirements, and regulations each industry we serve faces.

Explore industries

Healthcare

Addressing IT and operations challenges to enable organizations to better serve patients and members.

Pharma and Life Sciences

Offering Cegeka’s Microsoft Dynamics 365 and Power Platform solutions to navigate industry and regulatory challenges.

Energy

Empowering energy organizations to thrive with data-driven insight and process innovation.

Government

Modernizing operations to improve citizen engagement and service delivery for all levels of government.

Manufacturing

Enabling seamless, efficient operations and increased speed to market with enterprise apps.

Finance and Insurance

Meeting the industry's need for enhanced efficiency, automation, compliance, and customer experiences.

Insights
Insights

We're thrilled to share our insights and expertise with you. Learn about industry trends, how to navigate common challenges, client success stories, and more.

Case Studies

Learn how we collaborate with clients to ensure their success.

Videos

Explore videos about CTG’s solutions, client testimonials, and more.

Blogs

Read blogs about tech, innovation, business, employees, and more.

News

View company news and insights from our experts in top publications.

Resources

View e-books, white papers, guides, infographics, and more.

Webinars

Learn from our experts, based on real-world experience across industries.

Join our team Contact us
Home Blogs Blogs How To Set Fake Location For Testing Location-Based Web Apps On Chrome
Digital Transformation
Testing
1 minute reading

How To Set Fake Location For Testing Location-Based Web Apps On Chrome

Rick Cruz

Rick Cruz

February 01, 2019

Web applications may need some time to access your location in order to show relevant data. For instance, while looking for hotels in a particular location on a website, the maps in the application may use the current geolocation to display hotels that are nearby, so while testing, the question that arises is how to test the application for various location without being in that place in real time?

In early days the websites used IP address to find out the approximate location but today with Geolocation API, browsers can detect your location accurately.

There are lot of 3rd party browser plugins for faking locations which sometimes may have adware or install unwanted programs on the machine so the safest would be to use Google Chrome and manipulate the geo location.

Here’s how.

Step-1:

Open the Chrome browser in your test environment

Step-2:

Right click on your testing site and select ‘Inspect’ (or) simply press ‘F12’

Step-3:

Click on ‘More tools' and select 'Sensors' option.

Step-4:

Choose ‘Geolocation’ as Custom Location (or) we can choose any predefined locations.

Step-5:

All you need to do is fill the ‘Latitude & Longitude’ coordinate of your testing location as per the requirement.

Step-6:

Reload the web page. Now, the website is ready for testing. Thus, on opening the application, the browser will always ask for a confirmation before sharing your location accept the same and continue to do the required testing.

Simulating a location is simple on following the above steps using Google Chrome and this helps to test if the application behaves properly at different locations.

For further web application service and consulting talk to our experts!

Rick Cruz

Rick Cruz

As Managing Director, Applications and Data, Rick has executive responsibility for the ongoing development of CTG’s Application and Data Solutions offerings and teams to deliver innovative, global services that help clients strategically address their business challenges. Rick is an accomplished IT leader and TOGAF Certified Enterprise Architect with 30+ years of IT experience, specializing in enterprise digital transformation strategy and execution, platform/solution architecture, information management, app development, quality assurance, and data/systems integration.

More of Rick Cruz articles