function navigateWithDirectoryTree(windowId, path) {
  return expandDirectoryTreeFor(windowId, path).then(function() {
    // Select target path.
    return remoteCall.callRemoteTestUtil('fakeMouseClick', windowId,
        [`[full-path-for-testing="${path}"]`]);
  }).then(function() {
    // Wait until the Files app is navigated to the path.
    return remoteCall.waitUntilCurrentDirectoryIsChanged(
        windowId, `/Downloads${path}`);
  });
}
/**
 * Navigates to specified directory on Download volume by using directory tree.
 */
Navigates to specified directory on Download volume by using directory tree.
Navigates to specified directory on Download volume by using directory tree .
function navigateWithDirectoryTree(windowId, path) {
  return expandDirectoryTreeFor(windowId, path).then(function() {
    return remoteCall.callRemoteTestUtil('fakeMouseClick', windowId,
        [`[full-path-for-testing="${path}"]`]);
  }).then(function() {
    return remoteCall.waitUntilCurrentDirectoryIsChanged(
        windowId, `/Downloads${path}`);
  });
}
function navigateWithDirectoryTree ( windowId , path ) { return expandDirectoryTreeFor ( windowId , path ) . then ( function ( ) { return remoteCall . callRemoteTestUtil ( 'fakeMouseClick' , windowId , [ ` ${ path } ` ] ) ; } ) . then ( function ( ) { return remoteCall . waitUntilCurrentDirectoryIsChanged ( windowId , ` ${ path } ` ) ; } ) ; }
Navigates to specified directory on Download volume by using directory tree.
Navigates to specified directory on Download volume by using directory tree .
// Select target path. // Wait until the Files app is navigated to the path.