Open estwanick opened 6 years ago
When trying to change the value of a dropdown using select chrome.select returns ReferenceError: option is not defined
async function test() { await chrome.goto('http://localhost:3000/pva'); const x = await chrome.exists('#accountViewSelector') //true const y = await chrome.html('#accountViewSelector') //returns correct dropdown <select .. const z = await chrome.select('#accountViewSelector', '0'); // ReferenceError: option is not defined chrome.done(); } test();
Sole component being rendered
const PortfolioValueAnalysis = () => { return ( <select id='accountViewSelector' className="form-control"> <option value='0'>0</option> <option value='1'>1</option> <option value='2'>2</option> </select> ) } export default PortfolioValueAnalysis;
I cant find solution for this
When trying to change the value of a dropdown using select chrome.select returns ReferenceError: option is not defined
Sole component being rendered