mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	fix: permissions in mobile and geolocation example (#1667)
This commit is contained in:
		
							parent
							
								
									65ca87cd9a
								
							
						
					
					
						commit
						2eba79bc98
					
				| @ -64,7 +64,7 @@ const iPhone11 = devices['iPhone 11 Pro']; | |||||||
|     viewport: iPhone11.viewport, |     viewport: iPhone11.viewport, | ||||||
|     userAgent: iPhone11.userAgent, |     userAgent: iPhone11.userAgent, | ||||||
|     geolocation: { longitude: 12.492507, latitude: 41.889938 }, |     geolocation: { longitude: 12.492507, latitude: 41.889938 }, | ||||||
|     permissions: { 'https://www.google.com': ['geolocation'] } |     permissions: ['geolocation'] | ||||||
|   }); |   }); | ||||||
|   const page = await context.newPage(); |   const page = await context.newPage(); | ||||||
|   await page.goto('https://maps.google.com'); |   await page.goto('https://maps.google.com'); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 lcmtwn
						lcmtwn