Hi Isomorphic,
is it possible to expect that Selenium / Selenese will be compatible with let's say this year's version of Chrome.
I have one problem that seems to occur to me only in the "modern" versions of the Chrome, but it does not always appear, but every 100 times when I repeat some random operations.
The cause is unknown and I can't reproduce it for you. I can't reproduce it even locally when I want, but by accident.
My code looks like this:
	I have to use redraw () in this case although you do not recommend it, but that should not be a problem in this case.
I belive that problem is:
This condtion is sometimes "false"
	
Using SmartGwtTimer I belive that I've solved the problem
	But I would like to be 100% sure that I did it before I deliver this fix and I would like to be able to reproduce this bug if possible.
Best regards
Pavo
					is it possible to expect that Selenium / Selenese will be compatible with let's say this year's version of Chrome.
I have one problem that seems to occur to me only in the "modern" versions of the Chrome, but it does not always appear, but every 100 times when I repeat some random operations.
The cause is unknown and I can't reproduce it for you. I can't reproduce it even locally when I want, but by accident.
My code looks like this:
Code:
	
	com.smartgwt.client.widgets.form.fields.events.ChangedHandler{
...
..
        @Override
        public void onChanged(ChangedEvent event) {
        ..
        ..
            if (parent.isDrawn()) {
                AssignStatusNewStatus.this.redraw();
                parent.setCalculatedHeight(AssignStatusNewStatus.this);
            }
        }
}//ChangedHandler closed
    public void setCalculatedHeight(Canvas canvas) {
        if (!canvas.isDrawn())
            canvas.draw();
        newHeight = canvas.getVisibleHeight() + heightIncrease > defaultWindowHeight ? defaultWindowHeight
                : canvas.getVisibleHeight() + heightIncrease;
        if (newHeight < minWindowHeight)
            setHeight(minWindowHeight);
        else
            setHeight(newHeight);
    }
I belive that problem is:
This condtion is sometimes "false"
Code:
	
	if (parent.isDrawn()){...}
Using SmartGwtTimer I belive that I've solved the problem
Code:
	
	            SmartGwtTimer t = new SmartGwtTimer() {
                @Override
                public void run() {
                    if (parent.isDrawn()) {
                        AssignStatusNewStatus.this.redraw();
                        parent.setCalculatedHeight(AssignStatusNewStatus.this);
                    }
                }
            };
            t.schedule(1);
Best regards
Pavo
Comment