Hi.
I'm pretty new to phpunit. at the moment i try to write a test for a selenium webdriver test. my aim is to get the value of a html code tag like the following and save to a variable:
<form method="POST" style="" data-limit="432" id="exampleid" class="testclass">
to specify my problem:
i have "access" to the form tag by using the CssSelector:
->byCssSelector('#exampleid');
now i want to save the value of the attribute data-limit into a variable;
i tried to use
"getAttribute" and the following:
->byCssSelector('#exampleid data-limit')->value(); but i realized that both is appearantly not suitable.
is there a selenium build-in function for my purpose?
thanks for your help
</form>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
<form method="POST" style="" data-limit="432" id="exampleid" class="testclass">I'm pretty new to phpunit. at the moment i try to write a test for a selenium webdriver test. my aim is to get the value of a html code tag like the following and save to a variable:
to specify my problem:
i have "access" to the form tag by using the CssSelector:
->byCssSelector('#exampleid');
now i want to save the value of the attribute data-limit into a variable;
i tried to use
"getAttribute" and the following:
->byCssSelector('#exampleid data-limit')->value(); but i realized that both is appearantly not suitable.
is there a selenium build-in function for my purpose?
thanks for your help
</form>