- dadaniel93
- Posts : 2
Join date : 2010-08-09
ajax dropdown selection and changing the text of label in IE7
Mon Aug 09, 2010 9:56 pm
I am using selenium rc with ie7. my application is having ajax drop
down list
when an item in a dropdown is selected, the text of a label on the
page changes to the same text of selection in the dropdown.
But when the item is selected, the text of a label doesn't change
Can anyone advise me on how to handle it ?
Here is the demo link and the script:
demo: http://demo.tremormedia.com/~mcurry/selenium/
$this->selenium->open("http://demo.tremormedia.com/~mcurry/
selenium/");
$this->selenium->select("TestSelect","Option 2");
$this->selenium->select("TestSelect","Option 4");
down list
when an item in a dropdown is selected, the text of a label on the
page changes to the same text of selection in the dropdown.
But when the item is selected, the text of a label doesn't change
Can anyone advise me on how to handle it ?
Here is the demo link and the script:
demo: http://demo.tremormedia.com/~mcurry/selenium/
$this->selenium->open("http://demo.tremormedia.com/~mcurry/
selenium/");
$this->selenium->select("TestSelect","Option 2");
$this->selenium->select("TestSelect","Option 4");
Re: ajax dropdown selection and changing the text of label in IE7
Sun Aug 15, 2010 11:53 am
hi,
try this code
public function testMyTestCase()
{
$this->open("http://demo.tremormedia.com/%7Emcurry/selenium/");
$this->select("TestSelect", "label=Option 2");
$this->select("TestSelect", "label=Option 4");
$this->select("TestSelect", "label=Option 5");
try {
$this->assertTrue($this->isTextPresent("Option 5"));
} catch (PHPUnit_Framework_AssertionFailedError $e) {
array_push($this->verificationErrors, $e->toString());
}
try this code
public function testMyTestCase()
{
$this->open("http://demo.tremormedia.com/%7Emcurry/selenium/");
$this->select("TestSelect", "label=Option 2");
$this->select("TestSelect", "label=Option 4");
$this->select("TestSelect", "label=Option 5");
try {
$this->assertTrue($this->isTextPresent("Option 5"));
} catch (PHPUnit_Framework_AssertionFailedError $e) {
array_push($this->verificationErrors, $e->toString());
}
- dadaniel93
- Posts : 2
Join date : 2010-08-09
Re: ajax dropdown selection and changing the text of label in IE7
Thu Aug 19, 2010 3:08 am
Sorry if I wasn't clear enough, but the issue happens only if the item is selected by the script and only in IE. If I select manually the item from dropdown menu (i.e, Option 2), then the label on the page changes (to Option 2).
If the script selects the item (i.e, Option 2) , then nothing happens and the label remains unchanged (Option 1).
If the script selects the item (i.e, Option 2) , then nothing happens and the label remains unchanged (Option 1).
- Webdriver code for dropdown selection is not working
- Silenium IDE code for selecting and ajax autopopulate dropdown item
- I'm facing issue with dropdown elements selection in webdriver.
- How to get full text from truncated text display?
- How to get the tittle of a object (not window), bcz title holds the full text but inner text holds only 25 char of text (in RC and Webdriver)
Permissions in this forum:
You cannot reply to topics in this forum