Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何将循环内文本列表内容作为变量设置入xpath #299

Open
yulongMao opened this issue Feb 5, 2024 · 0 comments
Open

如何将循环内文本列表内容作为变量设置入xpath #299

yulongMao opened this issue Feb 5, 2024 · 0 comments

Comments

@yulongMao
Copy link

yulongMao commented Feb 5, 2024

如循环内文本为:
张三-(换行)-李四
image

需要让循环内的列表xpath根据循环内文本内容动态变化
如:我要让该xpath第一次循环为://li[contains(., '张三')]第二次为//li[contains(., '李四')]
image

如何做到

已知可以将循环内文本列表内容动态输入文本框,如果输入文字组件不设置xpath,然后提取输入文字组件的值,将其设为变量插入xpath,可行吗?或者说不设置xpath的输入文字组件的值能提取出来作为变量使用吗?

@yulongMao yulongMao reopened this Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant