小编Luk*_*s S的帖子

Selenium Webdriver中的LocalStorage

普通浏览器和Selenium浏览器有不同的LocalStorage存储吗?当我在硒铬上创建项目时,关闭浏览器后,该项目消失了。这是故意的吗?我也无法从普通浏览器中读取localStorage

编辑:更具体地说:

如果我在Selenium Chrome浏览器中输入控制台

localStorage.setItem("test", "This is a test value"); localStorage.getItem("test"); =>按预期打印“这是一个测试值”

但是,如果我关闭Selenium chrome并重新打开它,然后尝试从同一页面获取相同的值localStorage.getItem("test");=> null

从不同的帖子中可以看到,它们通常可以与Selenium中的localStorage一起使用。

javascript selenium selenium-webdriver

6
推荐指数
1
解决办法
2867
查看次数

Bootstrap 导航栏宽度大于视口

我的导航栏比内容大。试图通过单击抛出浏览器 css 来解决问题,但没有任何效果。我没有更改引导程序本身的任何内容,也没有覆盖与导航栏相关的内容。

我的 CSS 和 Html:

/* ===============================================================================================
                                        Allgemeine Settings
   ===============================================================================================*/
html, body{
    height: 100%;
    width: 100%;
    max-width: 100%;
    font-family: Arial;
}

body{
overflow-x:hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}
.clearfix:after {
    clear: both;
}
.clearfix {
    *zoom: 1;
}


/* ===============================================================================================
                                        Landing-Page Settings
   ===============================================================================================*/


.home-section{
    height: auto !important;
    min-height: 100%;
    overflow: hidden;
    padding-top: 50px;
    background: url(../pics/home.jpg) no-repeat center;
    background-size: cover;
    color: rgb(207, 207, 207);
}

#wrapper {
    text-align: center;
    margin-top: 20%;
}

#wrapper h1{ …
Run Code Online (Sandbox Code Playgroud)

html twitter-bootstrap

2
推荐指数
1
解决办法
6795
查看次数