-
FEATURED COMPONENTS
First time here? Check out the FAQ!
i'm having hard time testing a web application. i use selenium ide to test my application and whenever the page gets refreshed or loaded again from home screen, id's of web page elements get changed. is there anyway to fix this? an error message keeps popping up when a test case is recorded and played back. For ex: [error] Element //input[@id='zkcomp1007'] not found.
Hi charansai,
The ids of components are generated each time the page loads - so you will never get the same ids for HTML tags in the dom, that is why selenium fails. You have three options:
The last two of these are covered in this link: https://www.zkoss.org/wiki/ZKDeveloper'sReference/Testing/Testing_Tips
Hello,
Also for more information please refer to the following documentation:
https://www.zkoss.org/wiki/SmallTalks/2013/July/ZKTestingwithSelenium_IDE
Best Regards,
Darksu
Asked: 2016-07-27 07:50:25 +0800
Seen: 51 times
Last updated: Jul 31 '16
How to get HTML Components values into MVC Composer or MVVM View Model
embed zul file into html template
onBlur event is not sent when clicking on a Html component
Applet integration - How can i get the html tag id in javascript?
Create notification icon with zk 7 CE