Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Copy text from textarea to variable #169

Open
zloyfenix opened this issue Feb 15, 2022 · 1 comment
Open

Copy text from textarea to variable #169

zloyfenix opened this issue Feb 15, 2022 · 1 comment

Comments

@zloyfenix
Copy link

Good afternoon, for several days I have been trying to find a solution on how to implement copying text from a text area to a variable, I will be very grateful to you for a hint on how this can be implemented, I tried this code, but it does not work for me

$text = $page->evaluate(JsFunction::createWithParameters(['document'])
	->body('return document.getElementById("tText").value;'));
@PJTH3G0D
Copy link

$page->evaluate(JsFunction::createWithParameters("document")
->body('return document.getElementById("Text").value;'));

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants