- 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
- How to get focus to main window after popup window is closed.
- Can not check the checkbox on popup window
- How to get focus on popup alert while saving the data through selenium RC with php.
- Are there other ways to fetch/select window popup
- select window is only useful for popup or another tab (browser) also?
Permissions in this forum:
You cannot reply to topics in this forum