0

i am trying but but make it work:

I have found the id i want to use, but if i try it, it says element not found

<div class="WareItem" data-sort="hardware" data-hardware-id="12345" data-reactid="321">

I tried with

CLICK
css=div[to='data-hardware-id="12345"']

EDIT:

i added a picture, please help me :Denter image description here

mytrasher
  • 25
  • 5
  • Maybe you need to click a link, or a button and not a div. Add the html for the element that you need to click. – lauda Aug 26 '16 at 11:22
  • i tried with css=button but it hasnt worked either ^^ – mytrasher Aug 26 '16 at 11:25
  • Add the html for the section of the button if you need help with the selector. – lauda Aug 26 '16 at 11:27
  • i did add the html?! "div class="WareItem" data-sort="hardware" data-hardware-id="12345" data-reactid="321"" – mytrasher Aug 26 '16 at 11:28
  • 1
    This is the div, you need to click on an button or a link, the html for the button may help. if you need to select this div the selector would be: div[data-hardware-id="12345"] – lauda Aug 26 '16 at 11:32
  • hm i think its not a button it is selector for colors, if i click on then i can change the color, thats why i wanted to use it to select different colors – mytrasher Aug 26 '16 at 11:34
  • It should work the selector i gave, if not please see here few rules to get css selectors http://www.w3schools.com/cssref/css_selectors.asp – lauda Aug 26 '16 at 11:41
  • not working with div[data-hardware-id="12345"] – mytrasher Aug 26 '16 at 12:14
  • It would need to be css=div[data-hardware-id="12345"] not just div[data-hardware-id="12345"] – Jsmith2800 Aug 30 '16 at 09:46
  • hello, i was on vacation :D now i am back... with css=div[data-hardware-id="12345"] its still not working... selenium ide shows as "green" if i click it, but still it isnt selecting the needed hardware – mytrasher Sep 07 '16 at 07:39
  • Nobody an Idea? or should i create a new Thread cause i was on vacation? MODS? :D – mytrasher Sep 07 '16 at 10:06

0 Answers0