Questions tagged [evaluatejavascript]

28 questions
0
votes
1 answer

WKWEbView Loading URL and evaluate

I want to access javascript file store properties. How can I do that? I want to fetch user ID. and also I want to call a function which will set push token to server. any suggestion? for example: func getProfileUserIDFromJavaScript() { let…
0
votes
0 answers

Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference , while using evaluateJavascript

im trying to get some string return from a webview evalueteJavascript value idk what is wron here it was perfectly working till yesterday , i had made no changes to this code , but dont know why its giving me this error Attempt to invoke virtual…
0
votes
0 answers

Executing javascript post with puppeteer

I am working with JS+Puppeteer and I'm trying to make a script that can add items to cart. The website will often crash due to high traffic, so instead of relying on clicking I would like to execute the post javascript directly. This is the a tag…
0
votes
1 answer

evaluate Javascript doesn't run in web view

I'm trying to interact with my web view so I can get a value to later insert into a file (which is not important), When trying to execute the JavaScript I tried adding script tags and also removing the function which both ways don't work. I don't…
0
votes
1 answer

Call Javascript function with parameters from iOS ObjC

I am trying to call Javascript function with params from iOS using 'evaluateJavascript', everything works fine but the params value is not being sent, please see the code below -(void) callJavascriptFunc: (NSString*)val{ //Example val is "Apple"…
DroidDev
  • 789
  • 9
  • 19
0
votes
0 answers

How to use Android Multi-Webview?

I made the Android multi-webview available and then opened a new window at window.open(). I put javascript code in a new window and tried to get a return, but the code was put in an existing window instead of a new window. Any solution? Help…
0
votes
3 answers

How to scraping JSON that contains a specific string In Javascript with Xpath

I have a HTML data like this.