Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

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());
}
avatar
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


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