Display results as :

Rechercher Advanced Search

Latest topics
» Selenium WebDriver Integration
Yesterday at 1:06 pm by azharuddin

» 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


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