Skip to content

Commit

Permalink
expose RemoteObject
Browse files Browse the repository at this point in the history
  • Loading branch information
YusukeIwaki committed Aug 14, 2022
1 parent 48907b8 commit aeecc19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/integration/js_handle_spec.rb
Expand Up @@ -7,6 +7,11 @@
expect(window_handle).to be_a(Puppeteer::JSHandle)
end

it 'should return the RemoteObject' do
window_handle = page.evaluate_handle('() => window')
expect(window_handle.remote_object).to be_a(Puppeteer::RemoteObject)
end

it 'should accept object handle as an argument' do
navigator_handle = page.evaluate_handle('() => navigator')
text = page.evaluate('(e) => e.userAgent', navigator_handle)
Expand Down

0 comments on commit aeecc19

Please sign in to comment.