Skip to content

Commit cd8db7a

Browse files
authored
Merge pull request #407 from ninp0/master
PWN::WWW::TransparentBrowser module - add #find_element_by_text metho…
2 parents b191e1c + 607e1de commit cd8db7a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ rvm use ruby-3.2.2@pwn
3737
$ rvm list gemsets
3838
$ gem install --verbose pwn
3939
$ pwn
40-
pwn[v0.4.861]:001 >>> PWN.help
40+
pwn[v0.4.862]:001 >>> PWN.help
4141
```
4242

4343
[![Installing the pwn Security Automation Framework](https://raw.githubusercontent.com/0dayInc/pwn/master/documentation/pwn_install.png)](https://youtu.be/G7iLUY4FzsI)
@@ -52,7 +52,7 @@ $ rvm use ruby-3.2.2@pwn
5252
$ gem uninstall --all --executables pwn
5353
$ gem install --verbose pwn
5454
$ pwn
55-
pwn[v0.4.861]:001 >>> PWN.help
55+
pwn[v0.4.862]:001 >>> PWN.help
5656
```
5757

5858

lib/pwn/plugins/transparent_browser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ module TransparentBrowser
285285
text = opts[:text].to_s
286286

287287
elements_found = browser_obj[:browser].elements.each do |element|
288-
element.text.include?(text)
288+
element.text == text
289289
end
290290

291291
elements_found.each do |element_found|

lib/pwn/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module PWN
4-
VERSION = '0.4.861'
4+
VERSION = '0.4.862'
55
end

0 commit comments

Comments
 (0)