Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.1 kB
1
Indexable
# Generated by Selenium IDE
import pytest
import time
import json
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities

class TestGitlab():
  def setup_method(self, method):
    self.driver = webdriver.Remote(command_executor='http://localhost:4444/wd/hub', desired_capabilities=DesiredCapabilities.CHROME)
    self.vars = {}
  
  def teardown_method(self, method):
    self.driver.quit()
  
  def test_gitlab(self):
    self.driver.get("https://about.gitlab.com/")
    self.driver.set_window_size(1920, 1053)
    self.driver.find_element(By.NAME, "Why GitLab").click()
    self.driver.find_element(By.CSS_SELECTOR, ".menu_tab:nth-child(3)").click()
    self.driver.find_element(By.CSS_SELECTOR, ".menu_tab:nth-child(4)").click()