Skip to content

Cannot find css button #214

Closed Answered by Mifrill
jenko asked this question in Q&A
Nov 6, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@jenko This button element inside a specific frame:

need to use frames to got proper reference:

irb(main):001:0> require 'ferrum'
=> true
irb(main):002:0> browser = Ferrum::Browser.new
=> 
#<Ferrum::Browser:0x0000557ae873bc58
...
irb(main):003:0> browser.go_to("https://www.w3schools.com/csS/tryit.asp?filename=trycss_buttons_font")
=> "B518E51285C593532700AE92549906D9"
irb(main):004:0> browser.frames
 [#<Ferrum::Frame @id="B518E51285C593532700AE92549906D9" @parent_id=nil @name=nil @state=:stopped_loading @execution_id=2>,
 #<Ferrum::Frame @id="9D922C5348BFC0509623B8D35966C21E" @parent_id="B518E51285C593532700AE92549906D9" @name="iframeResult" @state=:stopped_loading @execution_id=3>,
 #<F…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jenko
Comment options

Answer selected by Mifrill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants