It does not work if I do this:
const OpenAI = require('openai'); const openai = new OpenAI({ apiKey: [[CHATGPTAPIKEY]] }); async function main() { const completion = await openai.chat.completions.create({ model: [[MODEL]], messages: [ {"role": "system", "content": "You are a "+[[COMMENTSTYLE]]+" assistant."}, {"role": "user", "content": [[SAVED_TEXT]]} ], temperature: [[TEMPERATURE2]], max_tokens: 150, stop: ["\n", "User:"], n: 1 }); [[OUTPUT]] = completion.choices[0]; } main();how to add variable to xpath
-
XPATH> (//*[starts-with(@id, 'react-select-') and contains(@id, 'option')])[variable]
-
@zxcawsdik said in how to add variable to xpath:
@DuckDuck XPATH> (//*[starts-with(@id, 'react-select-') and contains(@id, 'option')])[[[variable]]]?
You can put the entire xpath expression in a variable, and in the action, instead of a selector, already use a variable.
-
@zxcawsdik it is dont work