Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97778

Rselenium javascript doPostBack to next page

$
0
0

Hi I run into this problem whereby the page is a table written in .aspx. It a table with buttons to click next 25 row of results. I am a completely noob at javascript.

enter image description here

I am currently using Rselenium and tries to navigate to the next e.g. 26-50 result. Upon inspecting the element:

enter image description here

Usually when I navigate using Rselenium I would just find the element by using "id" but this time it doesn't. So I searched in stackoverflow HERE and found I need to use the executescript function with the doPostBack javascript thing:

rd$client$executeScript("javascript:__doPostBack('_transcriptsGrid$_dataGrid','Page$2');", args=list("dummy"))

But it returns with an error:

Selenium message:javascript error: 'caller', 'callee', and 'arguments' properties may not be accessed 
on strict mode functions or the arguments objects for calls to them
(Session info: chrome=79.0.3945.130)
Build info: version: '4.0.0-alpha-2', revision: 'f148142cf8', time: '2019-07-01T21:30:10'
System info: host: 'hahaha', ip: '192.168.1.4', os.name: 'Windows 10', os.arch: 'x86', 
os.version: '10.0', java.version: '1.8.0_231'
Driver info: driver.version: unknown

Error:   Summary: JavaScriptError
     Detail: An error occurred while executing user supplied JavaScript.
     class: org.openqa.selenium.JavascriptException
     Further Details: run errorDetails method

Does anyone know the solution of this problem?


Viewing all articles
Browse latest Browse all 97778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>