- egitas
- Posts : 1
Join date : 2012-11-26
popup PhPUnit -pass data onto main window
Mon Nov 26, 2012 4:16 pm
how to resolve issue
need to pass data onto main window from popup when clicks 'save'
but program will just close window and continue to run (no error trown)
no data will be passed onto main window tho
$this->button_click('add_step');
$this->waitForPopUp("zbx_popup", "30000");
$this->selectWindow("name=zbx_popup");
$this->input_type('id=name','MyWebStep');
$this->input_type('id=url','MyWebLink');
$this->button_click('save');
$this->selectWindow("null");
thanks!
by the way
below is the piece of code phpUnit plugin in Selenium IDE generated for me
$this->click("id=add_step");
$this->waitForPopUp("zbx_popup", "30000");
$this->selectWindow("name=zbx_popup");
$this->type("id=name", "MyWebScenario");
$this->type("id=url", "MyUrl");
$this->click("id=save");
$this->waitForPageToLoad("30000");
looks similar to my code, and i tried using, waitForPageToLoad function, but no success
need to pass data onto main window from popup when clicks 'save'
but program will just close window and continue to run (no error trown)
no data will be passed onto main window tho
$this->button_click('add_step');
$this->waitForPopUp("zbx_popup", "30000");
$this->selectWindow("name=zbx_popup");
$this->input_type('id=name','MyWebStep');
$this->input_type('id=url','MyWebLink');
$this->button_click('save');
$this->selectWindow("null");
thanks!
by the way
below is the piece of code phpUnit plugin in Selenium IDE generated for me
$this->click("id=add_step");
$this->waitForPopUp("zbx_popup", "30000");
$this->selectWindow("name=zbx_popup");
$this->type("id=name", "MyWebScenario");
$this->type("id=url", "MyUrl");
$this->click("id=save");
$this->waitForPageToLoad("30000");
looks similar to my code, and i tried using, waitForPageToLoad function, but no success
Permissions in this forum:
You cannot reply to topics in this forum