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

Selenium doesnt capture colour picker

View previous topic View next topic Go down

Selenium doesnt capture colour picker

Post by ManjuV on Tue Aug 31, 2010 3:42 pm

Hi,
Iam new to selenium Rc python...

In my application there is an option to choose fore colour and back ground colour using colourpickker,

This is my code for click the colour pickker
sel.click("//div[@id='collorpicker_327']/div[12]")

Even in selenium ide also doesnt capture

I have an error like this..

[error] Element //div[@id='collorpicker_327']/div[12] not found


please help me to solve the problem

ManjuV

Posts : 5
Join date : 2010-08-31

Back to top Go down

Re: Selenium doesnt capture colour picker

Post by anatar02 on Sun Sep 05, 2010 3:19 pm

try with css selector

anatar02
Active particpant
Active particpant

Posts : 12
Join date : 2010-09-05

Back to top Go down

Re: Selenium doesnt capture colour picker

Post by ManjuV on Mon Sep 06, 2010 11:52 am

Can you give the code using css

ManjuV

Posts : 5
Join date : 2010-08-31

Back to top Go down

Re: Selenium doesnt capture colour picker

Post by anatar02 on Mon Sep 06, 2010 4:02 pm

Provide me source code of your element which you wanted to locate using css selector so that i can try to give allocator

anatar02
Active particpant
Active particpant

Posts : 12
Join date : 2010-09-05

Back to top Go down

Re: Selenium doesnt capture colour picker

Post by mgharikrishnan on Mon Jun 20, 2011 5:56 pm

Dear All,

Is there any solution for this issue. I have been searching a lot for this. In my web application, we use 5 colour pickers. I need to automate them. Every time I open this page, the object ID changes for this color picker (Example : //div[@id='collorpicker_902']/div[12] in this example the number 902 to changes to some random number (444) the next time). Please provide me some steps to automate this...
Please help me!!!! Crying or Very sad

~ Harri...

mgharikrishnan
Active particpant
Active particpant

Posts : 10
Join date : 2011-06-20

Back to top Go down

Re: Selenium doesnt capture colour picker

Post by Arthur on Tue Jun 21, 2011 3:02 pm

Hi,
Thanks for Questioning this I have tried with this and it works for me please see is it ok for you.

sel.click("//div[6]/span/img") // This is icon which opens the color selection box "xpath".
sel.mouse_move_at("mColorPickerImg", "10,50") // mColorPickerImg is the allocator for the selection box which has
popped and the values are position where we have to click you can change as per your need
sel.click("mColorPickerImg") // click on the location where we have set the position of cursor

Arthur
Active particpant
Active particpant

Posts : 23
Join date : 2011-05-23
Location : Pune

Back to top Go down

Re: Selenium doesnt capture colour picker

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