Comments (7)
Thanks for the report. Does it not start, or does it start headless ? What's the error you're getting?
from uno.uitest.
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.
Looks like it may be related to the path used to find chrome:
Maybe your installation is now found somehow ?
from uno.uitest.
The strange thing is that Chrome is actually in that folder (after manually copying):
from uno.uitest.
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.
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 theAppInitializer.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.
I had a similar issue, doing the following 2 things solved my issue:
- 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 - setting the "correct" WebAssemblyDefaultUri solved my problem
WebAssemblyDefaultUri = "https://localhost:5001/";
from uno.uitest.
Related Issues (20)
- XamarinAppRect does not implement value comparison.
- Improve Screenshot speed
- readme out of sync with sample
- expose the Selenium RemoteWebDriver
- Android and IOS setup documentation
- Handle Chrome in Program Files folder HOT 2
- SeleniumAppQuery doesn't implement IAppQuery.Index()
- Remove "Delete after 3.5 release" comment in readme HOT 2
- Readme steps don't end up in runnable WASM test HOT 6
- CyberModz HOT 1
- EnterText does not work on Android emulator HOT 1
- IAppResult of controls have Text set to null HOT 6
- No way to start app without clearing App data HOT 4
- Improve support & documentation for UI testing on a mac HOT 3
- Running Browser tests using Uno.UiTest outside of development code HOT 5
- Create a ActivePlatforms/IgnoredPlatforms Attribute for test methods/classes HOT 2
- Selenium 4.3 and later breaks TapCoordinates
- ChromeDriver not getting installed for newer Chrome versions HOT 1
- Invoking `IApp.Dispose()` does not terminate the webdriver HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uno.uitest.