Closed iDevPro closed 4 years ago
To define a relative path you have to use dot-notation(.//
).
static let browBookNameXPath = ".//a[contains(@class, 'brow-book-name')]"
I think close now, because I move to .css("pattern") and that work perfect :)
Description:
Installation method:
Kanna version (or commit hash):
5.2.2 with fix from 4.0.0 (name of module)
swift --version
Apple Swift version 5.2 (swiftlang-1103.0.32.1 clang-1103.0.32.29) Target: x86_64-apple-darwin19.4.0
Xcode version (optional):
Version 11.4 (11E146)
I found strange issue, when you need find a couple of same objects or object with child and want to iterate it. When you inside of loop use
.xpath()
for find items which contains what do you need, you cannot get it right because.xpath()
return first subitem from root item.for example: