<commit_before>import wd from '../utils/wd.js'
import { StaleElementReference, ElementNotVisible } from '../../../utils/errors.js'
import { some } from 'lodash'
import $ from 'jquery'

let elementId = 0

function getById (id) {
  let el = wd.elements[id]
  if (!el) {
    throw new StaleElementReference()
  }
  return el
}

function getByLocation (x, y) {
  let el = window.elementFromPoint(x, y)
  if (!el) {
    throw new StaleElementReference()
  }
  return el
}
<commit_msg>let elementId starts with 1<commit_after>import wd from '../utils/wd.js'
import { StaleElementReference, ElementNotVisible } from '../../../utils/errors.js'
import { some } from 'lodash'
import $ from 'jquery'

let elementId = 1

function getById (id) {
  let el = wd.elements[id]
  if (!el) {
    throw new StaleElementReference()
  }
  return el
}

function getByLocation (x, y) {
  let el = window.elementFromPoint(x, y)
  if (!el) {
    throw new StaleElementReference()
  }
  return el
}

{'fraction_non_alphanumeric': 0.13580246913580246, 'fraction_numerical': 0.0030864197530864196, 'mean_word_length': 3.4027149321266967, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2211413', 'n_tokens_mistral': 337, 'n_tokens_neox': 333, 'n_words': 98}