简体   繁体   中英

To select dropdown menu on PHP/selenium doesn't work

I'm tring to select this dropdown list<\/a> using PHP\/selenium.

sleep(3);
$driver->findElement( WebDriverBy::xpath("//*[@id='main']/form/section[2]/mer-select[1]/div/label/div[2]/select") )
->findElement( WebDriverBy::cssSelector("option[value='2']") )->click();

If this css<\/strong> :

select.input-node.medium.placeholder[name='category1']

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM