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 id="user-content-exampleid" class="" style="" data-limit="432" method="POST">
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 id="user-content-exampleid" class="" style="" data-limit="432" method="POST"> 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>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: