Selenium | Running Test with Chromedriver | Tutorial #17

preview_player
Показать описание
In this video, we learn how to setup a driver factory to create the browser of your choosing. We test with Chrome Driver specifically.

ChromeDriver Download:

Latest as of 05/13/2015:

GitHub Source Code:

Рекомендации по теме
Комментарии
Автор

Nice to see you. Long time you didn't upload videos.

makskharchenko
Автор

Nice little setup and expo video!

I was wondering though how you were able to get the executable into your project hierarchy, as I tried importing it into eclipse (yes, I stuck with it for continuity with my team, but I love the look, feel and features of intelliJ) and I couldn't.

Now, of course I can just drag and drop it into the directory directly, but I know sometimes IDE's freak out when you do that (at least eclipse, which has died on me a couple times I tried skipping the import step, and forcing me to clean install it).

Unless it's not there at all and I missed the point entirely, which I will not rule out ^_^.

As always, thanks for the help!

Dtromblee
Автор

I wrote the test earlier and it worked well with Firefox, but when I tried to run the same test with DriverFactory.BrowserType = CHROME. It failed. I got "NoSuchElementException"

@FindBy(css= WebElement user_password;

here are the html codes:

<ul class="link-list link-list-lg">
    <li>
        <a class="login-button">
            <strong>User ID and password <br></strong>

What should I write so it works for both Firefox and Chrome?

ngocmaile