selenium-ide icon indicating copy to clipboard operation
selenium-ide copied to clipboard

Commands that destroy a frame that they exist in error

Open Kirinfm opened this issue 6 years ago • 10 comments

🐛 Bug Report

Command sendKeys | linkText=close | ${KEY_ENTER} does not work in Chrome. But its work in Firefox.

To Reproduce

click <a href="javascript:void(0)">close</a>

Step:
send keys | linkText=close | ${KEY_ENTER}

ErrMsg in Chrome : sendKeys on linkText=close with value ${KEY_ENTER} Failed: 09:51:24 This locator type is unavailable with this command

But in Firefox : sendKeys on linkText=close with value ${KEY_ENTER} OK

Expected behavior

sendKeys on linkText=close with value ${KEY_ENTER} OK

Environment

OS: Windows 10 Selenium IDE Version: 3.9.0

Browser: Chrome Browser Version: 75.0.3770.90(64 bit)

Browser: Firefox Browser Version: 67.0.3 (64 bit)

Kirinfm avatar Jun 20 '19 02:06 Kirinfm

Command click a link with href=javascript:void(0) does not work

ErrMsg : Trying to find linkText=close... Failed: 10:13:11 frame no longer exists

Kirinfm avatar Jun 20 '19 02:06 Kirinfm

@Kirinfm Can you please provide a reproducible test case (e.g., a Selenium IDE project file attached as a zip file)?

tourdedave avatar Jun 20 '19 06:06 tourdedave

Project file reproducing this issue (highly encouraged)

linkTest.zip

this project reproducing Trying to find linkText=close... Failed: 10:13:11 frame no longer exists

Kirinfm avatar Jun 20 '19 08:06 Kirinfm

This may not be a selenium ide bug, it only reproduce when I use the Quick UI Framework (a UI lib).

Kirinfm avatar Jun 20 '19 08:06 Kirinfm

The project file you provided points to localhost. Do you have a public site that demonstrates the issue? Or can you attach an HTML file?

tourdedave avatar Jun 23 '19 12:06 tourdedave

The project file you provided points to localhost. Do you have a public site that demonstrates the issue? Or can you attach an HTML file?

You can put static folder on Nginx Server. the HTML file under the static folder

Kirinfm avatar Jun 24 '19 05:06 Kirinfm

Oh, my bad. I didn't see the HTML file in the zip. I'll take a look.

tourdedave avatar Jun 24 '19 07:06 tourdedave

This will be resolved when we move Selenium IDE playback to WebDriver (timeline TBD).

We are adding try/catch commands soon, which will provide workaround for this issue. You can track its progress in #718.

tourdedave avatar Jun 24 '19 09:06 tourdedave

Thanks

Kirinfm avatar Jun 25 '19 00:06 Kirinfm

@Kirinfm did you ever find a work around in the current version of Selenium IDE?

pacal avatar Jul 20 '22 15:07 pacal