message: Wired up docTree search and parsing for the doc frameId so sendKeys in Chrome will work in and out of frames
diff: @@ -20,7 +20,7 @@ import Debugger, { convertLocator } from '../debugger'
  import PlaybackState from '../../stores/view/PlaybackState'
  import variables from '../../stores/view/Variables'
  import { absolutifyUrl } from '../playback/utils'
  -import { userAgent as parsedUA } from '../../../common/utils'
  +import { searchDocTree, userAgent as parsedUA } from '../../../common/utils'
  import './bootstrap'
  export default class ExtCommand {
  @@ -435,6 +435,26 @@ export default class ExtCommand {
  }
  }
  + getFrameIds() {
  + const frameLocation = this.getCurrentPlayingFrameLocation()
  + const frameIds = frameLocation.split(':')
  + frameIds.shift()
  + if (frameIds.length > 0) return frameIds
  + }
  +
  + async getDocNodeId(connection) {
  + const docTree = await connection.getDocument()
  + const frameIds = this.getFrameIds()
  + if (frameIds) {
  + const { childFrames } = await connection.getFrameTree()
  + const frameId = Debugger.getFrameId(childFrames, frameIds)
  + const node = searchDocTree(docTree, 'frameId', frameId)
  + return node.contentDocument.children[0].children[1].nodeId
  + } else {
  + return docTree.nodeId
  + }
  + }
  +
  async doSendKeys(locator, value, top) {
  const browserName = parsedUA.browser.name
  if (browserName === 'Chrome' && value.indexOf('${KEY_ENTER}') !== -1) {
  @@ -458,9 +478,11 @@ export default class ExtCommand {
  }
  try {
  await connection.attach()
  - const docNode = await connection.getDocument()
  const selector = await this.convertToQuerySelector(locator)
  - const nodeId = await connection.querySelector(selector, docNode.nodeId)
  + const nodeId = await connection.querySelector(
  + selector,
  + await this.getDocNodeId(connection)
  + )
  const parts = value.split('${KEY_ENTER}')
  let n = 0
  while (n < parts.length) {
  