問題タブ [nightwatch]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
3 に答える
3325 参照

javascript - ナイトウォッチで .elements() はどのように機能しますか?

複数の tr があることを考慮して、1 つを選択し、それにバインドされた編集ボタンをクリックして値を編集したいと考えています。

私はこのようなことをしています:

そして、私は次のようなものを手に入れます:

  1. 正確には「abcd-1234-qwer-0987」とは何ですか?このセッション ID は一種のもので、変更されますか?
  2. 特定の要素を取得する最良の方法は何ですか? 私のアプローチが間違っていると思うので:elements.value[1]['abcd-1234-qwer-0987']