diff --git a/README.mkdn b/README.mkdn index 20b7e04b..e88ed9d4 100644 --- a/README.mkdn +++ b/README.mkdn @@ -1486,6 +1486,8 @@ intervals are possible. Note that when passing in a selector, that selector is requeried on every poll instance. So the following query will work as expected: + xpath => '//*[contains(text(),"click here for download")]' + # CONTENT RENDERING METHODS ## `$mech->content_as_png()` diff --git a/lib/WWW/Mechanize/Chrome.pm b/lib/WWW/Mechanize/Chrome.pm index 9d514233..7f3b8797 100644 --- a/lib/WWW/Mechanize/Chrome.pm +++ b/lib/WWW/Mechanize/Chrome.pm @@ -4828,6 +4828,8 @@ intervals are possible. Note that when passing in a selector, that selector is requeried on every poll instance. So the following query will work as expected: + xpath => '//*[contains(text(),"click here for download")]' + =cut sub wait_until_visible( $self, %options ) {