Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

change useragent cypress test run

cy.visit(url, {
    headers: {
        'user-agent': 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)',
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #useragent #cypress #test #run
ADD COMMENT
Topic
Name
1+1 =