Selenium Examples Tutorials

Selenium CSS Selector Wildcard Example

Yesterday, when trying to get a dynamic count of number of fields for a Ruby on Rails application, I stumbled across a scenario where I had to match the ID value for a HTML tag by using a wildcard pattern. The requirement was to get a count of number of ID tags matching a specific pattern and then update the last of that tag with a user provided value. I tried several examples using CSS ....

Selenium CSS Selector Wildcard Example - Part 2

In the previous post, we showed how to match an ID value by using wild cards in Selenium. In this post, we will provide some more methods that are available in Selenium to match tags with a specific pattern. On the same lines as of starts with type of matching, it is possible to match tags with a ends with a specific suffix or contains a specific pattern in its attribute value. Note that the ....

No comments:

Post a Comment