lib/pwn/www/youtube.rb in pwn-0.4.367 vs lib/pwn/www/youtube.rb in pwn-0.4.368
- old
+ new
@@ -50,20 +50,20 @@
rescue StandardError => e
raise e
end
# Supported Method Parameters::
- # browser_obj = PWN::WWW::Google.search(
+ # browser_obj = PWN::WWW::Youtube.search(
# browser_obj: 'required - browser_obj returned from #open method',
# q: 'required - search string'
# )
public_class_method def self.search(opts = {})
browser_obj = opts[:browser_obj]
q = opts[:q].to_s
browser_obj.text_field(name: 'search_query').wait_until(&:present?).set(q)
- browser_obj.button(id: 'search-btn').wait_until(&:present?).click
+ browser_obj.button(id: 'search-btn').click!
browser_obj
rescue StandardError => e
raise e
end