|
7 | 7 |
|
8 | 8 | @pytest.mark.parametrize("", [[]] * 3) |
9 | 9 | def test_multi_threaded(sb): |
10 | | - sb.driver.uc_open_with_reconnect("https://top.gg/", 5) |
| 10 | + url = "https://gitlab.com/users/sign_in" |
| 11 | + sb.driver.uc_open_with_reconnect(url, 3) |
11 | 12 | sb.set_window_rect(randint(0, 755), randint(38, 403), 700, 500) |
12 | 13 | try: |
13 | | - sb.assert_text("Discord Bots", "h1", timeout=2) |
14 | | - sb.post_message("Selenium wasn't detected!", duration=4) |
| 14 | + sb.assert_text("Username", '[for="user_login"]', timeout=3) |
| 15 | + sb.post_message("SeleniumBase wasn't detected", duration=4) |
15 | 16 | sb._print("\n Success! Website did not detect Selenium! ") |
16 | 17 | except Exception: |
17 | | - sb.driver.uc_open_with_reconnect("https://top.gg/", 5) |
| 18 | + sb.driver.uc_open_with_reconnect(url, 3) |
18 | 19 | try: |
19 | | - sb.assert_text("Discord Bots", "h1", timeout=2) |
20 | | - sb.post_message("Selenium wasn't detected!", duration=4) |
| 20 | + sb.assert_text("Username", '[for="user_login"]', timeout=3) |
| 21 | + sb.post_message("SeleniumBase wasn't detected", duration=4) |
21 | 22 | sb._print("\n Success! Website did not detect Selenium! ") |
22 | 23 | except Exception: |
23 | 24 | sb.fail('Selenium was detected! Try using: "pytest --uc"') |
0 commit comments