Bring a code back from a company website tab
Medium50 pts~2 min
- Multiple tabs
- Window handles
- Cross-page data
Practice app · ConnectIn
A professional network: a 3-step sign-up wizard, a feed with likes, comments and lazy-loaded posts, a notifications dropdown, a messaging drawer with auto-replies, job search with filters and a multi-step Easy Apply modal, member profiles with connect/withdraw, a skills tag input and company pages that open a careers site in a new tab.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
From the Northwind Labs company page, open the company website in a new tab, read the careers code shown there, switch back to ConnectIn and confirm the code.
Your task
- 1Open TEST_URL, click Jobs (#nav-jobs) and search for “Northwind”.
- 2In the details pane, click the company name (#job-company-link) to open the Northwind Labs page (#/company/northwind-labs).
- 3Click “Visit website” (#visit-website). It opens the careers site in a new tab.
- 4Switch to the new tab and read the code in #careers-code.
- 5Switch back to the ConnectIn tab, type the code into #careers-code-input and click Confirm (#confirm-code).
- 6Assert #code-status reads “Code confirmed”.
Acceptance criteria
- The careers code from the new tab is entered on the company page.
- The company page reports “Code confirmed”.
- The test switches to the new tab to read the code.
- The test makes at least two assertions.
Fixtures
- alex@connectin.test
- Password
- Connect@2026
- Account name
- Alex Morgan
- Password rules
- 8+ characters with an uppercase letter, a number and a special character
- Locations
- Bengaluru, India · Berlin, Germany · London, UK · New York, US · Toronto, Canada
- Featured company
- Northwind Labs (#/company/northwind-labs)
Selenium WebDriver 4 · Selenium Challenges · ConnectIn