Share
Go down
dadaniel93
Posts : 2
Join date : 2010-08-09

ajax dropdown selection and changing the text of label in IE7

on 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");
avatar
Advisor
------------------------
------------------------
Posts : 383
Join date : 2009-07-30
Location : India
http://seleniumforum.forumotion.net

Re: ajax dropdown selection and changing the text of label in IE7

on 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());
}
dadaniel93
Posts : 2
Join date : 2010-08-09

Re: ajax dropdown selection and changing the text of label in IE7

on 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).
Sponsored content

Re: ajax dropdown selection and changing the text of label in IE7

Back to top
Permissions in this forum:
You cannot reply to topics in this forum