Madcow relies heavily on XPATH.
It is usually used in the mappings files. Like this one in the search.grass file.
searchButton.xpath=//button[@type='submit']
Therefore it is important to have a good understanding of how to use xpath.
Here is some good links to read up about it.
There are also a few plugins for your web browsers, which you can run to test your xpath code.
So if you haven't already got one then you should look at getting one also.
Here are a few links…
Also here is a good tip too:
You can use$x
in the Chrome javascript console. No extensions needed.ex:$x("//img")
Also the search box in the web inspector will accept xpath
Không có nhận xét nào:
Đăng nhận xét