Login page crashing only with Ranorex OpenBrowser call and chrome

Bug reports.
User avatar
Bassem.Ibrahim
Posts: 7
Joined: Tue Nov 06, 2018 9:14 pm

Login page crashing only with Ranorex OpenBrowser call and chrome

Post by Bassem.Ibrahim » Thu Sep 03, 2020 1:17 am

Chrome version: 85.0.4183.83 (Official Build) (64-bit)
Steps:
1)Open a website that automatically populates username and password (saved password) with Ranorex Open Browser API
Host.Current.OpenBrowser("<website with automatically populated credentials>", "Chrome", "", false, false, false, false, false, true);
2)Click the login button

Result:
chrome crashes

observations:
  • under chrome settings - passwords - offer to save passwords setting causes this issue with the latest version of chrome. disabling the setting allows you to login normally
  • downgrading chrome fixes the issue
  • manually opening the browser and logging in works with that setting enabled and latest version of chrome
Last edited by Bassem.Ibrahim on Fri Sep 11, 2020 5:09 pm, edited 2 times in total.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6180
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Login page crashing only with Ranorex OpenBrowser call and chrome

Post by odklizec » Thu Sep 03, 2020 6:59 am

Hi,

I can confirm this problem and it's definitely a bug in Ranorex, caused by "Instrument" switch (last "True" parameter in your code). If Chrome is already instrumented, the Instrument switch is irrelevant, so you can turn it off. But of course, even if enabled, it should not cause a crash of browser ;) For now, you will have to turn it off and wait for Ranorex fix. But as mentioned, it should not be a problem if the browser is already instrumented (by Ranorex install or via Instrumentation wizard).

Oh and please create an official support ticket here:
https://www.ranorex.com/support-query/
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
Bassem.Ibrahim
Posts: 7
Joined: Tue Nov 06, 2018 9:14 pm

Re: Login page crashing only with Ranorex OpenBrowser call and chrome

Post by Bassem.Ibrahim » Thu Sep 03, 2020 5:00 pm

Interestingly, when you open up Ranorex forum with OpenBrowser() API and try to log in, first you will get an error message "The submitted form was invalid. Try submitting again.", then when you hit the login button again it will crash. I have tried the instrument switch off, and it still crashes. Only the browser switch I mentioned has an effect.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6180
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Login page crashing only with Ranorex OpenBrowser call and chrome

Post by odklizec » Fri Sep 04, 2020 7:23 am

Hi,

I cannot confirm the error "submitted form was invalid" but yes, with Ranorex forum login, OpenBrowser() method crashes latest Chrome, even with disabled Instrument switch. So yes, it's most probably a bug in Ranorex. Could you please create a support ticket for this problem?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
Bassem.Ibrahim
Posts: 7
Joined: Tue Nov 06, 2018 9:14 pm

Re: Login page crashing only with Ranorex OpenBrowser call and chrome

Post by Bassem.Ibrahim » Fri Sep 04, 2020 5:31 pm

Thanks for the feedback. Yes I opened a ticket yesterday morning.