mirror of
https://github.com/MontFerret/ferret.git
synced 2025-03-03 15:02:32 +02:00
Fixed selection of text containing special characters (#619)
This commit is contained in:
parent
5119d62838
commit
ae352e2e6b
@ -11,4 +11,16 @@ INPUT_CLEAR(input)
|
||||
|
||||
T::EMPTY(INNER_TEXT(doc, "#text_output"))
|
||||
|
||||
INPUT(input, "test0-test1", 100)
|
||||
|
||||
INPUT_CLEAR(input)
|
||||
|
||||
T::EMPTY(INNER_TEXT(doc, "#text_output"))
|
||||
|
||||
INPUT(input, "test0&test1", 100)
|
||||
|
||||
INPUT_CLEAR(input)
|
||||
|
||||
T::EMPTY(INNER_TEXT(doc, "#text_output"))
|
||||
|
||||
RETURN NONE
|
@ -13,4 +13,16 @@ LET output = ELEMENT(doc, "#text_output")
|
||||
|
||||
T::EMPTY(output.innerText)
|
||||
|
||||
INPUT(form, "#text_input", "test0-test1", 100)
|
||||
|
||||
INPUT_CLEAR(form, "#text_input")
|
||||
|
||||
T::EMPTY(output.innerText)
|
||||
|
||||
INPUT(form, "#text_input", "test0&test1", 100)
|
||||
|
||||
INPUT_CLEAR(form, "#text_input")
|
||||
|
||||
T::EMPTY(output.innerText)
|
||||
|
||||
RETURN NONE
|
@ -399,7 +399,7 @@ func (m *Manager) ClearBySelector(ctx context.Context, parentNodeID dom.NodeID,
|
||||
|
||||
func (m *Manager) ClearByXY(ctx context.Context, points Quad) error {
|
||||
delay := time.Duration(drivers.DefaultMouseDelay) * time.Millisecond
|
||||
err := m.mouse.ClickWithCount(ctx, points.X, points.Y, delay, 2)
|
||||
err := m.mouse.ClickWithCount(ctx, points.X, points.Y, delay, 3)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user