简体   繁体   中英

scanning the web page and find out any illegal word wraps

I need to automate a scenario where the script has to scan the whole and verify if there are any legal and illegal word wraps found,and highlight the same. The legal and illegal word wraps will supplied as input data excel along with the web url to check.

can we achieve this with any test automation tool? like selenium(preferred)?

Well,

I'm not sure which word is legal or illegal on your approach, but you may create a dictionary with these legal/illegal words and check if they are present on the page?

Just get the entire page source and perform a scan using the your own dictionary

String pageSource = driver.getPageSource()

Does it make sense?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM