File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,17 @@ def _make_result(self, result):
27
27
for e in result ]
28
28
29
29
def select (self , xpath ):
30
- """Return elements using webdriver `find_elements_by_xpath` method."""
30
+ """Return elements using the webdriver `find_elements_by_xpath` method.
31
+
32
+ Some XPath features are not supported by the webdriver implementation.
33
+ Namely, selecting text content or attributes:
34
+ - /some/element/text()
35
+ - /some/element/@attribute
36
+
37
+ This function offers workarounds for both, so it should be safe to use
38
+ them as you would with HtmlXPathSelector for simple content extraction.
39
+
40
+ """
31
41
xpathev = self .element if self .element else self .webdriver
32
42
ending = _UNSUPPORTED_XPATH_ENDING .match (xpath )
33
43
atsign = parens = None
You can’t perform that action at this time.
0 commit comments