Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

ajax dropdown selection and changing the text of label in IE7

View previous topic View next topic Go down

ajax dropdown selection and changing the text of label in IE7

Post by dadaniel93 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");

dadaniel93

Posts : 2
Join date : 2010-08-09

Back to top Go down

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

Post by Adviser 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());
}

Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

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

Post by dadaniel93 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).

dadaniel93

Posts : 2
Join date : 2010-08-09

Back to top Go down

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

Post by Sponsored content Today at 7:18 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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