Display results as :

Rechercher Advanced Search

Latest topics
» why do i get this error
Sun Apr 23, 2017 9:43 pm by anbarasi

» wait property
Sun Apr 23, 2017 12:50 pm by anbarasi

» What is the use of Selenium Remote Control
Fri Apr 21, 2017 7:24 pm by azharuddin

» How can I fix it? TCP PORT Exhaustion
Wed Apr 19, 2017 3:29 pm by JohnSnow

» Difference between QTP, Selenium and Silk test
Wed Apr 19, 2017 2:30 pm by Basilios Will

» Locator for google document
Tue Apr 18, 2017 10:01 pm by SergeyK

» I encountered a mistake: Couldn't register this node
Sat Apr 15, 2017 9:06 pm by skyshine725

» Current version tutorial for just creating a browser instance - Visual Studio
Fri Apr 14, 2017 2:47 am by KilpAr

» cant able to select drop down otions
Thu Apr 13, 2017 6:08 pm by anbarasi


How to test single page application (java) with selenium

View previous topic View next topic Go down

How to test single page application (java) with selenium

Post by NewSelenium on Sat Nov 09, 2013 6:06 pm

Currently I am working on a single page application, which is developed using AngularJS.
It is a questionnaire about a house inspection.
Where investigators visit the house and enter the results.
Section 1:  questions about the Basic information about the house
Section 2:  About the Bathroom General questions.
In this section we have about 15 questions and few of them are mandatory.
2 of the mandatory questions are
Q1. Appearance
Q2. Safety
Then Starts the buttons and when user clicks each button opens a pop up dialog box.
 Dialog box will have few dropdown lists and user has to select answers for them.  Few of them are mandatory.
The above mentioned 2 mandatory questions are repeated here in the dialog boxes.
Problem is
When I selected first time using xpath it is working fine but when the same questions appears in the dialog box  I am able to see the dropdown but unable to select the value from the dropdown. I tried with xpath or CSSselector but of no use.
Please can someone will help me with my scenario and let me know how can find the web element.


Posts : 1
Join date : 2013-11-09

Back to top Go down

Re: How to test single page application (java) with selenium

Post by bwTester on Thu Mar 20, 2014 5:05 pm

Not sure, if I understand your problem, but I think you should use the following to select from dropdown:

new Select(driver.findElement(By.xpath(ENTER_XPATH_HERE))).selectByVisibleText(ENTER_VALUE_HERE);

Hope that helps.


Posts : 2
Join date : 2014-03-20

Back to top Go down

Re: How to test single page application (java) with selenium

Post by ashav on Thu Mar 20, 2014 6:35 pm


Even if the question are repeated; please check the correct xpath for those dropdown. 

Since these 2 questions are now openened in a pop-up window so first you need to handle that pop-up and find out the correct location / xpath for the dropdown. 

You can use Fifebug in FF to identify the same.


Posts : 4
Join date : 2014-02-10

Back to top Go down

Re: How to test single page application (java) with selenium

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