猿问
请问Selenium如何判断有没有div弹出层,如果有div弹出层则关掉这个弹出层?
网页上有多个按钮,有的按钮弹出alert警告窗口,有的会弹出div层,
请问如何判断点击按钮后有DIV层弹出?
迁就LOSE
浏览 3862
回答 2
2回答
6HaHa
按下F12,查看网页代码,点击按钮,定位代码,有DIV层结构的那就是了
1
0
0
慕设计2395807
LORVUARQDWQMNJJSPXDDAITZLFOOBEXUKOXXNHERHFZISVOSVYYWJJIKQGGVJMCZMYRENNZWSTQZSJDCMIYLREUKNKNYRSIJJZZEQDMCSJLPFITFPVOVBOREXYKXXQGMZHHXSRCMGJJZMGJDTQQJGZZFPIWKDWZJMZSCITWZZLVHXKEUYOPIVBOXKKTKQJJSPLAAANPLEEFCMSLLOSYHADGMGVCSIKNNGWXKONAKQPVBLRHXRKJVEMFFSGCCILOHAQODWDDTXDSJFNBXRAQZJSHETCSIRFQFIEHDTWFVRWGOEGRTQZWRIXTCLUENQGJGXMJFPSVXNVKGPZHXAQZWFPJLUEHLURHDLOJODAWMOXZUQMIYUKHWFHJGBLHJAJTPMTVLUQGISIRTDTVRFCSVEOKYAWMVZNJZCFWRNQMCFBEHQADZBXVRNKGWCSOZVRUJSCKYVPFHKNQMPLTPLUQHKACYBLOKGPAQGILMBQZPLUYNPEUKTCSORHJSISPLUQNPSVXNDTJLBWTCSVRNTCFVRORIKGDYOPSLVSWMMCQLORNDYVRAXYNQMWDOKZWSWYURURNWMILKAWMWFBCFBKWLIXAQFVDLIKTWFHYURGPFPFBCSOXTJMIVLBIEORNWMVSOENDTVZPRHJLUXGWMOEAQKLUYURNJFIYWMCRHRADSVSSORTJMIRAKLOXGQRUKZCFICLVLVLBPZOYPSBLFCENDNJPLADZJDTJFVAKFCYBEUXNOFHQGWYIEGILJFOYHQGPEUXYODMAYURNDMWLIFPLPKTJZEADZBRSPYUDHWLBCAPLOENTVYHVLBETQZPYODTPSOETWCYGWYCLBQGCNQYVLVLTURGCLMVLBRZCFVZVXNKMCYVLG
0
0
0
OneKi
F12查看网页源代码不就好了
0
0
0
随时随地看视频
慕课网APP
相关分类
测试
我要回答