selenium

    -1热度

    1回答

    我有混合框架,这是在Eclipse中使用java的selenium。我可以使用整个代码在VSTS中构建它吗?

    0热度

    2回答

    我想通过网络表格将数据写入excel。 开始的行使用空白数据创建,最后一行填充数据,最后一个索引值。 即使数据存在于Arraylist中,其他行也没有被填充数据。 public class Write_Excel { public static `FileInputStream` `fis`; public static FileOutputStream fos;

    0热度

    2回答

    嗨, 我正在使用硒IDE Mozilla Firefox的用于Web自动化的脚本。 在脚本中,我正在搜索网页上的“下一个”按钮,并想知道它是否可用。如果是这样,点击它并转到下一页,如果没有重新启动脚本。 当一个页面上会没有下一个按钮,我得到一个错误和 “测试案例失败” 命令我使用: <tr> <td>storeElementPresent</td> <td>css=a._3a6

    -1热度

    3回答

    获得所需的日期格式 我的方法是: public String changeCurrentDate(Integer variant){ String currentTime = TestApp.getInstance().getDriver().findElement(By.id("common.HeaderComponent.mainLayout.serverTimeLabel")).g

    0热度

    4回答

    我正在循环使用日期选择器,但不希望返回所有值。 如果“is-disabled”在类中,我不想选择它。 这是我目前使用的循环。 List<WebElement> days = driver.findElements(By.className("c-datepicker-calendar__day")); for(int i1=0; i1<days.size(); i1++) {

    0热度

    1回答

    有没有人有在Browserstack中运行Selenium C#测试的经验。从Browserstack中尝试这个例子,但我似乎无法在Visual Studio中的测试浏览器中进行测试。不知道为什么我无法执行测试。有任何想法吗?我在Visual Studio中运行我的本地测试没有任何问题。 using System; using OpenQA.Selenium; using OpenQA.Sel

    0热度

    2回答

    在Moneycontrol的website中,我无法在尝试登录时输入用户名和密码。Selenium无法找到Webelement。 public void setUrl() throws IOException { driver = new FirefoxDriver() driver.get("http://www.moneycontrol.com/"); } publi

    0热度

    1回答

    即使其中一个软断言失败,测试也会继续。 但在我的情况下,我的测试在软件断言失败后停止,因为找不到下一个测试元素。 softAssert.assertTrue(p.OtsPage.fName().getAttribute("readonly").equals("true"), "field Name is Editable", "field Name is Read Only"); softAss

    4热度

    1回答

    我需要从python 3中所有打开的Chrome浏览器标签中获取所有的URL,而不需要用户干预。林在Windows上使用Microsoft Visual Studio Python3 10 我用尽: 直接与开放(路径当前选项卡)打开它 - 不工作,因为我没有permission-我认为它锁定,因为铬activly写入它。 Current_Tabs_Source = open(r"C:\Users\

    0热度

    1回答

    我从Scopus网站收集我的强制性数据并将其保存在名为“s”的列表中。但所有的数据都保存在s [1]中。我的代码是: s=[] document=driver.find_elements_by_xpath("""//*[@id="srchResultsList"]/tbody""") for i in document: s.append(i.text) 我该怎么办?我在pyth