所以,当我尝试打开firefox时,它会快速弹出,或者只是停留一秒钟直到我看到它然后崩溃 另外,我使用selenium版本2.53.1
WebDriver driver = new FirefoxDriver();
driver.get("http://stackoverflow.com");
答案 0 :(得分:1)
就像其他浏览器供应商提供给Selenium的其他驱动程序一样,Mozilla已经发布了可与浏览器一起运行的可执行文件import com.datastax.driver.core.{ResultSet, Row}
import com.websudos.phantom.CassandraTable
import com.websudos.phantom.dsl._
import com.websudos.phantom.iteratee.Iteratee
import org.dyne.danielsan.openblockchain.data.entity.Block
import scala.concurrent.Future
import com.websudos.phantom.reactivestreams._
import scala.concurrent.Await
import scala.concurrent.duration._
sealed class BlocksModel extends CassandraTable[BlocksModel, Block] {
override def fromRow(row: Row): Block = {
Block(
hash(row),
height(row)
}
object hash extends StringColumn(this) with PartitionKey[String]
object height extends IntColumn(this) with ClusteringOrder[Int] with Descending
object order_id extends LongColumn(this) with ClusteringOrder[Long] with Descending
abstract class ConcreteBlocksModel extends BlocksModel with RootConnector {
override val tableName = "blocks"
def getBlocks(start: Int, limit: Int): Future[Set[Block]] = {
select.fetchEnumerator.slice(start, limit).collect
}
}
。
您需要下载最新的可执行文件geckodriver from here,并将此下载的路径从您的计算机设置为系统属性,以使用geckodriver
驱动程序运行您的测试用例,如下所示:
Firefox