Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

 ajax dropdown selection and changing the text of label in IE7 Empty 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");
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

 ajax dropdown selection and changing the text of label in IE7 Empty 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());
}
avatar
dadaniel93
Posts : 2
Join date : 2010-08-09

 ajax dropdown selection and changing the text of label in IE7 Empty 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).
Sponsored content

 ajax dropdown selection and changing the text of label in IE7 Empty 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