Coder Social home page Coder Social logo

Comments (7)

jeromelaban avatar jeromelaban commented on May 28, 2024

Thanks for the report. Does it not start, or does it start headless ? What's the error you're getting?

from uno.uitest.

marcelwgn avatar marcelwgn commented on May 28, 2024

Chrome does not start at all (I wasn't able to see any chrome process in TaskManager). Unfortunately, I am not getting any errors, instead once I access the App object, I get a NullReferenceException.

from uno.uitest.

jeromelaban avatar jeromelaban commented on May 28, 2024

Looks like it may be related to the path used to find chrome:

var chromePath = $@"{Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86)}\Google\Chrome\Application\chrome.exe";

Maybe your installation is now found somehow ?

from uno.uitest.

marcelwgn avatar marcelwgn commented on May 28, 2024

The strange thing is that Chrome is actually in that folder (after manually copying):

Screenshot of Chrome being inside the Program Files x86 folder

from uno.uitest.

mrlacey avatar mrlacey commented on May 28, 2024

The strange thing is that Chrome is actually in that folder (after manually copying):

Did you just copy the exe to that folder? Based on dependencies, I think that is unlikely to work.
Did you try changing the path in the code to point to where the exe was originally?
Can you run the app in chrome from within VS? (if so, what's the path to the exe it's using?)
Have you tried changing the AppInitializer.TestEnvironment.WebAssemblyHeadless option so it doesn't try and run headless?
What's the output from the test?
If you enable diagnostic debug output and run the test in debug, is there anything in the output to indicate a/the problem?

from uno.uitest.

marcelwgn avatar marcelwgn commented on May 28, 2024

The strange thing is that Chrome is actually in that folder (after manually copying):

Did you just copy the exe to that folder? Based on dependencies, I think that is unlikely to work.

Copied the entire folder and running the Chrome.exe file works fine.

Did you try changing the path in the code to point to where the exe was originally?

Doesn't seem to make a difference.

Can you run the app in chrome from within VS? (if so, what's the path to the exe it's using?)
Have you tried changing the AppInitializer.TestEnvironment.WebAssemblyHeadless option so it doesn't try and run headless?
What's the output from the test?

There is none, the test just fails and the log doesn't show anything.

If you enable diagnostic debug output and run the test in debug, is there anything in the output to indicate a/the problem?

Still there is not much output here. Here is the dump: https://gist.github.com/chingucoding/29ea15b3cadbe0097c9485fb55bd0bef

from uno.uitest.

afust003 avatar afust003 commented on May 28, 2024

I had a similar issue, doing the following 2 things solved my issue:

  1. adding the following inside static method TestBase() resulted in Chrome window launching in non-headless mode and I noticed my issues was that the URI "localhost://5001" needed to be set to "https://localhost:5001/"; it appears "regular chrome" redirects but the one launched by Uno does not :/
    AppInitializer.TestEnvironment.WebAssemblyHeadless = false;
    Note: Make sure you have launched your application via Ctrl+F5 as outlined here before you run your tests
    https://github.com/unoplatform/Uno.UITest
  2. setting the "correct" WebAssemblyDefaultUri solved my problem
    WebAssemblyDefaultUri = "https://localhost:5001/";

from uno.uitest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.