使用和/或在两个cssSelector中

1 css-selectors selenium-webdriver

我正在使用selenium webdriver,我有一个场景,我必须找到一些元素.为此,我使用:

 driver.findElements(By.cssselector("mycsss"))
Run Code Online (Sandbox Code Playgroud)

再次,我必须用它来寻找另一些元素.现在我的问题是,

is there any way to find both these elements using there css 
path only in one methods like below:

driver.findElements(By.cssSelector("first element csspath" and "second element csspaht"))
Run Code Online (Sandbox Code Playgroud)

请帮助我.

noo*_*oor 5

使用如下:

driver.findElements(By.cssSelector("first css path , second css path"))
Run Code Online (Sandbox Code Playgroud)