Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g., fonts, colors, spacing) to Web documents.

learn more… | top users | synonyms

0
votes
1answer
23 views

Dynamic ID selecting text from dropdown

I have a situation I'm trying to handle. I am using webdriver, C#. The image above is the dropdown I want to select from. This is how it works, to select from the element, first click it and a text ...
0
votes
0answers
21 views

Select a dropdown element with dynamic ID using Webdriver, C#

I have a situation I'm trying to handle. I am using webdriver, C#. when I tried using the CSSSelector it is just reading the parameter as a string. Kindly look into it.This is the HTML. <div ...
0
votes
0answers
17 views

Css Validator lilke Jtidy for html

please i'm creating a javafx application that can create css classes, tags and ids like .dropdown{ background-color:#ff9900; font-size:24px; border:1px solid #CCC; } but the problem is that i also ...
1
vote
1answer
389 views

Selenium: Click on input-field with complicated selector

I need the right direction to click on a input field. When I copy the CSS path I get the following: html body#root div#box div#content div#C_INTERNAL_OBJECT-98286949812.container ...
2
votes
1answer
221 views

How do I test that external CSS does not contain an absolute URL via unit test?

I have been given the task of validating that we do not have any http:// URLs in our CSS or HTML documents. I've created a selenium IDE test that looks at src & href attributes as well as script ...
2
votes
2answers
11k views

Selenium - Find exact text match using CSS locators

According to A way to match on text using CSS locators, we should be able to use "^$" to find exact text match using CSS locators. But with div class="item"><div ...
11
votes
3answers
29k views

A way to match on text using CSS locators

So I use xpath locators and slowly converting to CSS. I haven't found a way to do an exact match based on text. For example converting //a[text()='Log Out']. I know you can do css=a:contains('Log ...
6
votes
5answers
736 views

Is there any reliable way to test CSS of a site?

is that a feasible idea? what tools do you use? what do you call this kind of testing?