Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Xpath for buttons not working in IE but working perfectly in firefox

View previous topic View next topic Go down

Xpath for buttons not working in IE but working perfectly in firefox

Post by abhinavgarg17 on Fri Mar 25, 2011 10:56 am

I am clicking a button using selenium in firefox and it is working
prefectly fine but in Internet Explorer it is not working properly.
xpath for button is //div[2]/span/button[1]
complete xpath is /html/body/div[3]/div/div[2]/span/button
css is html.dj_gecko body.yui-skin-sam div#dialog1_c.yui-panel-
container div#dialog1.yui-module div.ft span.button-group button

I had used all these combinations but it is not working in IE
Selenium rc was not able to find button using css but it is giving no
error in xpath. Selenium finds a element corresponding to the xpath
but still button is not clicked in IE.
I don't know what to do as it is working fine in firefox

I am using selenium GRID

abhinavgarg17

Posts : 2
Join date : 2011-03-25

Back to top Go down

Re: Xpath for buttons not working in IE but working perfectly in firefox

Post by auto_ashish1 on Tue Apr 05, 2011 11:44 pm

You can try installing 'xpather' addon in mozilla.
It can give you a more correct and accurate xpath.


Regards
Ashish


For online Selenium training go to my website- www.sejsoft.com

auto_ashish1
Active particpant
Active particpant

Posts : 21
Join date : 2011-03-10

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