Selenium IDE - Find id to click - css

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

Related

Accessibility error - Empty link. A link contains no text. - Wordpress

As you can check in the following link
https://benetialingerie.gr/product-category/%ce%ac%ce%bd%ce%b4%cf%81%ce%b5%cf%82/
there are some color attributes.
In the following link, you can check a report via webaim with some accessibility errors.
https://wave.webaim.org/report#/https://benetialingerie.gr/product-category/men/?lang=en
Just because all colors are buttons too, I want to insert somewhere an alt txt or something which, if I understand right, points out that it is a link.
The error I got is:
Empty link
A link contains no text.
Due to my limited developing skills, I don't know where exactly I must edit the code. I found something relevant, a plugin called "Variation Swatches for WooCommerce".
Can anyone help me out fixing this?
Just add an aria-label to your link. It will not only make the WebAIM/WAVE report happy, it will also allow a screen reader to hear the color name when they navigate to the link.
<a aria-label="red" href="https://benetialingerie.gr/product-category/%ce%ac%ce%bd%ce%b4%cf%81%ce%b5%cf%82/?filter_color=%ce%ba%cf%8c%ce%ba%ce%ba%ce%b9%ce%bd%ce%bf" rel="nofollow" class="rtwpvs-term-span rtwpvs-term-span-color" style="background-color:#db100a;" role="link"></a>
Note that you have role="link" on the <a>. The default role of an <a> element is already a link so the role attribute is not needed.

css message locator in robotframework

Please advice me about to find css message locator in robotframework.
I can not use id cause of change every time when I run test script.
Only Class not change but have a lot of message.
Hence I want to catch the message instead.
enter image description here
enter image description here
As far as I could understand, you need to select an element based on CSS class. If you need exactly that solution, you can go with CSS locator css:z-menu-img, if you are sure that this is the only element with that CSS class in the page.
Otherwise, I propose another solution (as unstable as the others because it can change over time): use XPath. For your case, it can be: //*[#id="kOIQf6-a"]/span.

css tooltip link not working

I am using this code to show a tooltip on hovering a link:
<span id="zing" class="zing-wrapper">Keyword<span>This is description here</span></span>
The tooltip works but when I click on the link, it does not work. Please help.
I have put the code in js fiddle here:
http://jsfiddle.net/y9gb6LLj/
Hi jsfiddle uses frame to display resulting code and browser will prevent document.location.href behavior inside the frame. Your code is working as expected to me, copy your code and paste into html file, open it in browser and click your link, you'll redirected to google.

Twitter Bootstrap - Can't get form to display properly

I have a form that I'm making in bootstrap but no matter what I do, I cant seem to get it to look how it looks in the tutorials. The label goes above the text box when it should be beside it, and the whole thing looks like it lacks any css formatting. Thanks for your help.
Here is the site that I'm working on and you can view the source code there:
aerofied.snbw.co/registration.php
bootstrap.min.js returns a 404 error and I believe this is the reason.
This is the URL that returns the error: http://aerofied.snbw.co/js/bootstrap.min.js
You should also read the Bootstrap documentation. You must use some specific classes for your forms.

OpenX: Banner link target=_self is not working

It seems OpenX (2.8.7) doesn't take into account the attribute "target".
I tried using "_self" and "_top" but when clicking on the banner it always opens a new (_blank) window.
I found nothing interesting on their forum.
Is that a bug or am I doing something wrong?
Setting target to '_top' should open in current window/tab.

Resources