我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

硒。 Xpath的。 按字符数组查找元素

Currently I need to find elements, that have at least one or more words from some array.

Here is the code that I have:

collect(['some', 'words'])->each(function ($word) {
    $found = $this->driver->findElements(
        WebDriverBy::xpath("//div[contains(text(), '$word')]")
    );
});

Is is possible somehow to make it using one findElements() call and pass the array there?

近期文章

  • 如何在网站代码中引用.po / .pot文件?
  • 如何与Eloquent Laravel的三张桌子进行咨询
  • 无法在php中返回目录
  • 如果另一个可用,则隐藏一种交付方式Woocommerce
  • 使用strict_types = 1依赖容器无用吗?
  • 实施服务费/与Braintree支付2个独立账户
  • 使用自定义FormRequest时请求未正确发送,但在使用默认值时发送
  • PHP变量从一个php文件到另一个使用xmlhttp.open()
  • 注意:未定义的索引:PHP会话中的电子邮件错误[重复]
  • Livezilla - 会话之间总是相同的访问者
  • PHP&Yii2; 如何使N尝试连接到LDAP而不显示错误
  • Laravel习俗关系
  • 将元素样式还原为默认值?
  • 如何在页面关闭之前发送ajax数据?
  • 在PHP中生成唯一字母表时出现问题
  • PHP Soap不会创建正确的xml文档
  • 如何将会话值分配给变量
  • Android Volley POST请求格式化问题
  • 使用CakePHP在另一个视图上显示搜索结果
  • php max_input_time -1含义:php.ini vs php文档?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华