需要硒中的逻辑 - 使用循环

发布于 2025-02-11 12:21:41 字数 895 浏览 0 评论 0原文

需要自动化方面的帮助 - 如何为下面编写自动化代码,

该网站之一是许多旅行者。它可以只有一个,2或3

”在此处输入图像描述

应该检查被保险人的

if (condition1) {
      // block of code to be executed if condition1 is true
    } else if (condition2) {
      // block of code to be executed if the condition1 is false and condition2 is true
    } else {
      // block of code to be executed if the condition1 is false and condition2 is false
    }

条件1 =如果被保险人只有1个旅行者, 条件2 =如果被保险人组成2个旅行者 等等..

“在此处输入图像描述”

这样,它应该检查名称...与标题或名称无关紧要

。列表标签并继续使用该代码。

谢谢

Need help in Automation - How to write Automation code for below,

One of the website consists many travelers. It can be just one, 2 or 3

enter image description here

It should check People Insured

if (condition1) {
      // block of code to be executed if condition1 is true
    } else if (condition2) {
      // block of code to be executed if the condition1 is false and condition2 is true
    } else {
      // block of code to be executed if the condition1 is false and condition2 is false
    }

Condition 1 = if People Insured consists only 1 traveler,
Condition 2 = if People Insured consists 2 travelers
and so on..

enter image description here

like that, it should check with names... doesn't matter with title or names..

It should check no. of lists tag and proceed with that code..

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文