Category: Google

0

Automate chrome apps

Chrome apps writ­ten using web­view are dif­fer­ent than iFrames because web­view is a sep­a­rate process. With Sele­nium 2.20 it is pos­si­ble to auto­mate chrome apps writ­ten using web­view. dri­ver = webdriver.Chrome(desired_capabilities={‘chromeOptions’:{‘windowTypes’:[’webview’]}}) driver.get(‘chrome://apps’) wait_for_new_window_to_appear() driver.switch_to.window(driver.window_handles[1])…

0

Debug — chrome.storage.local

Solu­tion 1 chrome.storage.local.get(‘key_name’, result => console.log(‘${result.key_name}‘)) Solu­tion 2 Install the fol­low­ing exten­sion https://chrome.google.com/webstore/detail/storage-area-explorer/ocfjjjjhkpapocigimmppepjgfdecjkb/ Open the dev tools for your chrome app You should see a new tab called Stor­age Explorer Stor­age Explorer will show all the…

0

webview autofocus not working with input

If you are using web­view to load other web­site, and if that web­site has aut­o­fo­cus enabled then aut­o­fo­cus will not work in the web­view by default. You will have to explic­itly enable the autofocus.…