@@ -5620,34 +5620,24 @@ <h3>Element Send Keys</h3>
5620
5620
of < a > trying</ a > to < a > get a known element</ a >
5621
5621
with argument < var > element id</ var > .
5622
5622
5623
+ < li > < p > < a > Scroll into view</ a > the < var > element</ var > .
5624
+
5623
5625
< li > < p > Wait in an implementation-specific way up to the < a > session
5624
5626
implicit wait timeout</ a > for < var > element</ var > to
5625
5627
become < a > keyboard-interactable</ a > .
5626
5628
5627
5629
< li > < p > If < var > element</ var > is not < a > keyboard-interactable</ a > ,
5628
5630
return < a > error</ a > with < a > error code</ a > < a > element not interactable</ a > .
5629
5631
5630
- < li > < p > < a > Scroll into view</ a > the < var > element</ var > .
5631
-
5632
- < li > < p > If < var > element</ var > is not the < a > active element</ a > :
5633
-
5634
- < ol >
5635
- < li > < p > Run the < a > focusing steps</ a > for the < var > element</ var > .
5636
-
5637
- < li > < p > Let < var > current text length</ var > be
5638
- the < var > < a > element</ a > </ var > ’s < a data-lt ="node
5639
- length "> length</ a > .
5640
-
5641
- < li > < p > Set the text insertion caret using < a > set selection range</ a >
5642
- with using < var > current text length</ var > as the 2 parameters passed in.
5643
- </ ol >
5644
-
5645
5632
< li > < p > Let < var > text</ var > be the result of < a > getting a property</ a >
5646
5633
< code > text</ code > from the < var > parameters</ var > argument.
5647
5634
5648
5635
< li > < p > If < var > text</ var > is not a string, return an < a > error</ a >
5649
5636
with < a > error code</ a > < a > invalid argument</ a > .
5650
5637
5638
+ < li > < p > If < var > element</ var > is not the < a > active element</ a > , run
5639
+ the < a > focusing steps</ a > for the < var > element</ var > .
5640
+
5651
5641
< li > < p > If < var > element</ var > is an < a > < code > input</ code > element</ a > whose
5652
5642
< a > < code > type</ code > attribute</ a > is < a > File</ a > :
5653
5643
< ol >
@@ -5681,10 +5671,16 @@ <h3>Element Send Keys</h3>
5681
5671
< li > < p > Jump to the last step in this overall set of steps.
5682
5672
</ ol >
5683
5673
5684
- < li > < p > Let < var > keyboard</ var > be a new < a > key input source</ a > .
5674
+ < li > < p > Let < var > current text length</ var > be
5675
+ the < var > < a > element</ a > </ var > ’s < a data-lt ="node length "> length</ a > .
5676
+
5677
+ < li > < p > Set the text insertion caret using < a > set selection range</ a >
5678
+ with using < var > current text length</ var > as the 2 parameters passed in.
5679
+
5680
+ < li > < p > Let < var > keyboard</ var > be a new < a > key input source</ a > .
5685
5681
5686
- < li > < p > < a > Dispatch actions for a string</ a > with
5687
- arguments < var > text</ var > and < var > keyboard</ var > .
5682
+ < li > < p > < a > Dispatch actions for a string</ a > with
5683
+ arguments < var > text</ var > and < var > keyboard</ var > .
5688
5684
5689
5685
< li > < p > Remove < var > keyboard</ var > from the < a > current
5690
5686
session</ a > 's < a > input state table</ a >
0 commit comments