Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3843478
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:56:37+00:00 2026-05-19T15:56:37+00:00

I am new to interfaces. What I am trying to do is defined a

  • 0

I am new to interfaces. What I am trying to do is defined a browser in a interface and then trying to access it from tests.
defined following in a sb.vb file

 Public Function Setup(ByVal Host As String, _
                               ByVal Port As Integer, _
                               ByVal String As String, _
                               ByVal URL As String) Implements IBrowser.Setup
    Return New DefaultSelenium(Host, Port, String, URL)
End Function

and then calling it in a testmethod

    TBrowser.Setup("localhost", 4444, "*firefox", "test")
    TBrowser.Start()

Giving me the following error

 Test method UnitTest1.test threw exception: 
 System.NullReferenceException: Object reference not set to an instance of an object.

Any idea what I am doing wrong

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T15:56:38+00:00Added an answer on May 19, 2026 at 3:56 pm

    You need to assign the Instance of Selenium returned by your ‘Setup’ function to an ISelenium variable. Then use that variable to start Selenium server.

    ISelenium selenium = TBrowser.Setup("localhost", 4444, "*firefox", "test")
    selenium.Start()
    

    Hope this helps.

    Thanks,
    Vamyip

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a new interface, but it depend from a custom widget which only
I'm posting a file in Javascript using the new FormData interface. When I send
public interface Proposal { public static final enum STATUS { NEW , START ,
Itest is an Interface. here i mentioned like new Itest(). Then is it means
I'm trying to learn interfaces and want to try the following: Let's say I
I am trying to write up a few tests using JMock and the following
I have an interface defined like so: public interface IRipper { IRipperHost Host {
I'm trying to move a java application from an old server to a new
I trying to use the MimeMapClass from IISOle. I am getting the following error
I defined an EJB and I'm trying to use it from another war: In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.