Display results as :

Rechercher Advanced Search

Latest topics
» Selenium WebDriver Integration
Tue Nov 21, 2017 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


Multiple Button issue

View previous topic View next topic Go down

Multiple Button issue

Post by Gaurav11372 on Fri Oct 12, 2012 6:47 pm

I am using selenium testing using Firefox. I am executing the application using the selenium IDE.
Through selenium IDE, i am able to login and move to the corresponding screen.
There are 4 buttons on my screen, when I invoke through selenium to click on 2nd or 3rd button it does not perform any action.
Each button is associated with hidden field which holds the value for the button. This is used in the javascript for each button. Selenium find the element properly but is not able to perform the proper action (Instead of clicking the found element i.e 2nd or 3rd button, it always clicks the first buton.)
I am using the following -

driver.findElement(By.xpath("//div[@class='buttonSet buttonSortable sortable']/fieldset[@id='fd_component_JSON_TASK_NScreateButton']/input[@value='Create Master Case']")).click();

I am new to selenium and would require your help to proceed.


Posts : 2
Join date : 2012-10-12

Back to top Go down

Re: Multiple Button issue

Post by rosco on Mon Oct 15, 2012 6:53 pm

Please, post html source (with javascript if necessary)

Active particpant
Active particpant

Posts : 20
Join date : 2012-04-05

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