php - PhpUnit Not waiting to load page after clicking submit -
I was going through a tutorial, on PHPUnit I left the tutorial well ... and my own self But some have got the login. .
But I went to the web to load a page and submitted a value to a real time page
It works fine ... but I have this issue After entering that
Anyone can help me
Anyone can help me
P>
This is my code
& lt ;? Php class testLogin extends PHPUnit_Extensions_Selenium2TestCase {public function setup () {$ this- & gt; SetHost ('localhost'); $ This- & gt; SetPort (4444); $ This- & gt; SetBrowser ('Firefox'); $ This- & gt; SetBrowserUrl ('http: // localhost / tutor'); } Public Function setSpeed ($ timeInMilliSec) {$ this- & gt; Set speed ('120'); } / * Function Website * / Public Function testHasLoginForm () {$ this-> To find out, URL ('http://www.jamb.org.ng/DirectEntry/'); / * This user has $ / username = $ this- & gt; ById ('ctl00_ContentPlaceHolder1_RegNumber'); / * A name * / ## ctl00_ContentPlaceHolder1_txtRegNumber $ Search for operation = $ this- & gt; ById ('ctl00_ContentPlaceHolder1_Reprint') - & gt; Attribute ('action'); $ This- & gt; ById ('ctl00_ContentPlaceHolder1_RegNumber') - & gt; Value ('49130518ED'); / * Price of text box * / $ jump = $ this- & gt; ById ('ctl00_ContentPlaceHolder1_Reprint'); $ Jump-> Submitted (); }}? & Gt;
You can use
$ -> can do ; Expires () - & gt; ImplicitWait (10000);
>
Comments
Post a Comment