java - Selenium Issue: Select.deselectAll() causing iframe issues -
i'm testing site using selenium browser automation framework. during testing switch specific frame, let's call "frame_1". later, use deselectall() method in select class. shortly after that, staleelementreferenceexception, ie frame reference problem whereby "frame_1" no longer targeted.
however, if comment out deselectall() on relevant multiselect box things work usual (except multiselect isn't cleared, of course).
since manipulating same elements whether call deselectall() method or not, , frame reference exceptions when call deselectall() i'm suspicious method call has effect on frame targeted, or etc...
is expected behavior and/or missing something?
it turns out issue triggered before deselectall() call. first, created select object, second javascript code removed item select list. @ point select object stale , therefore deselectall() call failed (and not other manipulation after that.)
Comments
Post a Comment