Questions tagged [execute-script]
60 questions
0
votes
0 answers
Python script to compare the data types of a CSV in Apache NiFi
I have created this Python script to compare the data types of a CSV coming from the InputStream with an array of data types,
but I don't understand why I'm getting an error in line number 7 in NiFi.
Does anyone know what I'm doing wrong?
from…

Dario Lurido
- 98
- 7
0
votes
1 answer
How can I use ExecuteScript in Apache Nifi to retrieve a list of files on an FTP server using Python?
I'm new to apache nifi and I am having trouble with writing a script that can give the list of files within a ftp server using the ExecuteScript on apache Nifi.
I have the following script that I'm trying to execute using the ExecuteScript…

Athenkosi Lengs
- 1
- 2
0
votes
1 answer
Getting Unexpected Character ' ' error in Groovy Script in Apache Nifi?
This is the script I have written to replace value of All in jsonData with response. But I am getting error on line 22 mentioned below of unexpected character'(' on line 22.
I'm unable to figure out if there is any mistake in script please help with…

dash
- 35
- 5
0
votes
0 answers
Selenium Python - Trying to driver.execute_script but get "None" while testing background-image
I'm trying to test a background-image with Selenium. It doesn't have
tag, it have this html code (it is banner from https://openweather.co.uk/products page):

zaelcovsky
- 23
- 4
0
votes
1 answer
How to replace a value with another in json data in Groovy?
I am trying to replace API Data with "All" in Emp_Id field in data in json. And then make rows with every data of API.
API DATA: I have stored this data in "Response" attribute in ExtractText in Apache…

dash
- 35
- 5
0
votes
1 answer
Getting object Object in output in executeScript in Nifi?
I am trying to store an API response in attribute myAttr in extractText processor but when I am trying to print the value of myAttr in ExecuteScript it is giving [object Object] in output and not printing the entire response of the API.
I think it…

Destiel
- 35
- 6
0
votes
1 answer
NiFi how do I pass an attribute to the executeScript processor
The flowfile uses evaluateJsonPath in order to extract values and setup my Attributes. I need to pass some of the attributes into a JavaScript function which I have in a ExecuteScript processor. The setting is for ECMAScript and the JS code is in…

edjm
- 4,830
- 7
- 36
- 65
0
votes
1 answer
Python selenium scrolling doesn't work when used in class instance
I'm trying to write a selenium script with python that downloads my bills from a website. There are more bills (rows) that can fit in the view port, and when the script reaches the end of the view port it fails. So I…

Zsolt
- 19
- 1
- 4
0
votes
1 answer
executeScript() method for scrolling throws error as null cannot create object using Selenium Java
For scrolling through a section, I wrote below code:
JavaScriptExecutor js= (JavaScriptExecutor) driver;
js.executeScript (scroll code);
but here executeSctipt method is autosuggested like:
js.executeScript(null,args)
and it throw error as null…

Sherin
- 1
- 1
0
votes
0 answers
Chrome.scripting.executeScript using function on page not defined
The following is my code
document.getElementById('randomname').onclick = () => {
chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
chrome.scripting.executeScript({
target: {tabId: tabs[0].id},
function:…

Cole The Dude
- 1
- 1
0
votes
0 answers
How to inject TWO js files that that imports one to another?
Thanks for the help!
So I have those two js files that I am injecting
I would like to know how can I make the content.js import the functions js file
I need to do that, couse the content.js file is just too…

euphoria666
- 1
- 2
0
votes
0 answers
document variable not recognized inside callback function when running executeScript
I am currently making a chrome extension that needs to validate whether a user has paid for the service. My background script confirms with the ExtensionPay API (thanks to Glen Chiacchieri) and then injects a script to be run. I learned that I can…

SamuelC00
- 61
- 6
0
votes
1 answer
ExecuteScript - get the complete source website
How to use ExecuteScript to get the complete page source - something like browser does with
view-source: https//..any..web..page
If I call ExecuteScript
wbBrowser.ExecuteScript('document.documentElement.outerHTML')
I only get what is displayed on…

L. Pospisil
- 21
- 2
0
votes
0 answers
Apache NiFi - Loop over flowfile's attribute value
I'm fairly new to either Stack Overflow and Apache NiFi, but I can't find any solution to my problem.
My incoming Flowfile has an integer value N in an attribute, let's call it myAttribute. What I'm trying to do, is to generate N FlowFiles looping…

Andrea Bozzano
- 1
- 2
0
votes
1 answer
Getting error while inserting data in sqlite3
I am new to Python and started off with sqlite.
I have two csv transaction.csv and users.csv from where I am reading the data and writing to the sqlite database.Below is the snippet
import csv
import sqlite3 as db
def readCSV_users():
with…

Prady
- 9
- 2