@@ -184,7 +184,7 @@ Ferrum::Browser.new(options)
184
184
185
185
## Navigation
186
186
187
- #### goto (url) : ` String `
187
+ #### go_to (url) : ` String `
188
188
189
189
Navigate page to.
190
190
@@ -959,13 +959,13 @@ context = browser.contexts.create
959
959
960
960
t1 = Thread .new (context) do |c |
961
961
page = c.create_page
962
- page.goto (" https://www.google.com/search?q=Ruby+headless+driver+for+Capybara" )
962
+ page.go_to (" https://www.google.com/search?q=Ruby+headless+driver+for+Capybara" )
963
963
page.screenshot(path: " t1.png" )
964
964
end
965
965
966
966
t2 = Thread .new (context) do |c |
967
967
page = c.create_page
968
- page.goto (" https://www.google.com/search?q=Ruby+static+typing" )
968
+ page.go_to (" https://www.google.com/search?q=Ruby+static+typing" )
969
969
page.screenshot(path: " t2.png" )
970
970
end
971
971
@@ -984,15 +984,15 @@ browser = Ferrum::Browser.new
984
984
t1 = Thread .new (browser) do |b |
985
985
context = b.contexts.create
986
986
page = context.create_page
987
- page.goto (" https://www.google.com/search?q=Ruby+headless+driver+for+Capybara" )
987
+ page.go_to (" https://www.google.com/search?q=Ruby+headless+driver+for+Capybara" )
988
988
page.screenshot(path: " t1.png" )
989
989
context.dispose
990
990
end
991
991
992
992
t2 = Thread .new (browser) do |b |
993
993
context = b.contexts.create
994
994
page = context.create_page
995
- page.goto (" https://www.google.com/search?q=Ruby+static+typing" )
995
+ page.go_to (" https://www.google.com/search?q=Ruby+static+typing" )
996
996
page.screenshot(path: " t2.png" )
997
997
context.dispose
998
998
end
0 commit comments