Tag Info

Hot answers tagged

6

css=a[text='Log Out'] or a[innertext='Log Out'] Can you please try this one out? Or if that doesn't work and you still don't want to use xpath because it's slow, you can always try: link=Log Out. That's still better then xpath. EDIT: So i found a possible solution for you mate. If you are trying to find an exact String you could always use Regular ...


4

You can create a regular expression for URLs (you should be able to find a few online), and search for the pattern in your HTML or CSS file. You just need to read the file in to a String (break it if the file is too long), and try pattern matching. You can do this without the overhead of Selenium or any other testing tool if you are familiar with either of ...


4

You almost certainly have to test on your actual product pages - trying to test CSS 'in parts' will miss out on any of the interesting cascading effects that you get with multiple stylesheets on the whole page. Of course, you also need to test on all the browsers you care about, since they all have their own rendering idiosyncrasies. Finding an appropriate ...


3

Validate the CSS. (http://jigsaw.w3.org/css-validator/) Compare the rendering results from real browsers against the expected results. (There is some room for waffling here, since a degraded user experience might be expected in some browsers.) Verify all expected behavior in real web browsers. Behavior comes from CSS pseudo-classes in addition to ...


3

CSS selectors can also match strings that start with, end with, or contain a certain substring. For example input[id^="E_DOS_TITEL"] will match an input element whose id attribute starts with the text E_DOS_TITEL. The ends with comparison operator is $=, and contains is *=. The example provided above should work as long as it's the only input element ...


2

From typesetting standpoint, the following 3 cases are absolutely equal: <div>123</div> <div> 123</div> <div> 123 </div> while from the DOM standpoint, there are differences. The inner text from the first div is "123", for the second one it's "\n123" and the third one is "\n123\n" (\n stands for newline escape ...


2

If you're looking for a tool that's built for regression testing check out: https://github.com/bfirsh/needle It basically takes screenshots of the parts you select (check their example) and compares them. If they're too different from each other, the test will fail.


1

A simple application I use to test cross browser compatibility with regards to CSS is Adobe Browser Lab which lets you compare rending in different browsers from different operating systems (you would be surprised to see some of the tiny differences that exist on the page). On the subject of cross-browser compatibility have a read over this page as it ...


1

This is a nice place for a few CSS selectors. http://net.tutsplus.com/tutorials/html-css-techniques/the-30-css-selectors-you-must-memorize/ Thought it might be useful for people following this thread.



Only top voted, non community-wiki answers of a minimum length are eligible