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

BrowserTest value of don't get the div text #623

Closed
cmaster007 opened this issue Mar 12, 2024 · 2 comments
Closed

BrowserTest value of don't get the div text #623

cmaster007 opened this issue Mar 12, 2024 · 2 comments

Comments

@cmaster007
Copy link

eg:<div class="two-line" id="iip_name_cname">内网IP</div>

BrowserTest value of don't get the text "divtest"

image

@fhoeben
Copy link
Owner

fhoeben commented Mar 16, 2024

Your problem is the extra space in the technical selector, try id=iip_name_cname

@fhoeben fhoeben closed this as completed Mar 16, 2024
@fhoeben
Copy link
Owner

fhoeben commented Mar 16, 2024

!define HTML { {{{
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div class="two-line"  id="iip_name_cname">内网IP</div>
</body>
</html>}}} }


|script      |mock xml server setup|
|add response|${HTML}              |
|$url=       |get mock server url  |

|script                |browser test                    |
|open                  |$url                            |
|seconds before timeout|1                               |
|check                 |value of|id=iip_name_cname|内网IP|

|script|mock xml server setup|
|stop                        |

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

2 participants