Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

.select throws ReferenceError: option is not defined #71

Open
estwanick opened this issue Feb 6, 2018 · 1 comment
Open

.select throws ReferenceError: option is not defined #71

estwanick opened this issue Feb 6, 2018 · 1 comment

Comments

@estwanick
Copy link

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;
@damigroupinc
Copy link

I cant find solution for this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants