Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Quality Assurance

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

Selenium Web Driver "Support Group"

I really don't know whether this is.... A.... going to take off as an idea... or B this is really the place to write this, and I'm doing it in jest in a way really.... because earlier today, I was thrilled to see that a new course in Selenium is going to be released soon.

So... in the back of my mind at least Selenium is back on my radar.

I'd really love to learn to make more use of this technology because the potential is huge for automation and user testing. However, despite my best efforts (and believe me, I tried and tried and tried) Selenium simply wasn't stable enough on my system. Incidentally, that's Windows 10 Home x64 Bit.

So, sooner or later when I get a bit more time I'm to try and dive back into Selenium and see if time has allowed it to be more forgiving.

Basically what was happening was when I tested selenium on my machine... Selenium would crash the testing browser instance and close it.

So I'd run these commands into npm.

require("chromedriver");

const selenium = require("selenium-webdriver")

const driver = new selenium.Builder().forBrowser("chrome").build();

const url = "<url goes here>";

driver.get(url)l

And I knew this wasn't correct behaviour because it would put logs into the debug file. Logs that I lost hours of my time trying to google and get my head around.

[1003/114613.188:ERROR:process_reader_win.cc(123)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights.  (0xc0000022)
[1003/114613.189:ERROR:exception_snapshot_win.cc(87)] thread ID 11448 not found in process
[1003/114613.189:WARNING:crash_report_exception_handler.cc(62)] ProcessSnapshotWin::Initialize failed

So I thought at the very least we could put our heads together as students and see if we could get some answers. Maybe some links to actual "technical support groups" or tutorials that might help errors like this. :)

Thanks :)

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

Yes. the final section of the "Library" page. <spoiler> I look at this page more often than I should. ;)

2 Answers

Hoessein Abd
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Hoessein Abd
Python Web Development Techdegree Graduate 19,107 Points

I don't think I can help you with this particular error. I'm a beginner myself. The first selenium course was a bit basic ish for me, since I already use selenium for repetitive testing scenarios at work. Cant wait to see what the new course has in store. When will it be released?

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

I think it will come out some time in May... the roadmap shows courses and content due for release up to that time... which gives me plenty of time to look at this before it comes out. But this intro Selenium course does encourage you to look at the documentation and see what else you can do with Selenium so I do encourage you to look at it if you need a refresher! :)

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

I just wanted to add this....

I've just done a successful load here on my PC (windows 10 Home) using *ChromeDriver 2.37.544315 (730aa6a5fdba159ac9f4c1e8cbc59bf1b5ce12b7) * and the latest versions of npm and node.

This is by running the commands to simply load a URL in git bash and the node REPL. I still haven't got all my confidence back with this but it's an encouraging start. The generated browser tab loads and then retrieves the URL when directed by the command in REPL and does not close as it did before.

Fingers crossed when I keep plugging away at this it all still performs as expected but taking nothing for granted! :)