Monthly Archive: January 2017

1

Automate chrome apps

Chrome apps written using webview are different than iFrames because webview is a separate process. With Selenium 2.20 it is possible to automate chrome apps written using webview. driver = 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

push vs concat vs spread

push, concat and spread all of them are object/array manipulation methods. push – mutates the original data var a = [1, 2, 3]; a.push(9); // returns 4 console.log (a); // [1, 2, 3, 9]...