Jump to content

ravikumark

Members
  • Posts

    2
  • Joined

  • Last visited

ravikumark's Achievements

Lepton

Lepton (1/13)

0

Reputation

  1. I have a front-end (React) application. I want to build it and deploy to 3 environments - dev, test and production. As every front-end app it needs to call some APIs. API addresses will vary between the environments. So they should be stored as environment variables. I utilize S2I Openshift build strategy to create the image. The image should be built and kind of sealed for changes, then before deployment to each particular environment the variables should be injected. So I believe the proper solution is to have chained, two-stage build. First one S2I which compiles sources and puts it into Nginx/Apache/other container, and second which takes the result of the first, adds environment variables and produces final images, which is going to be deployed to dev, test and production. Is it correct approach or maybe simpler solution exists? Commercial link removed by moderator
  2. When I click on an item inside a dropdown list, the item is correctly clicked but the error: "stale element is not attached to the page document" is raised. I guess this error is raised because of an element I use as changed inside the DOM or has been refreshed, but I didn't find any solutions for now. Here's my code: exam_question_type = self.driver.find_element(By.XPATH, f"//*[name()='svg'][@class='css-19bqh2r']") exam_question_type.click() WebDriverWait(self.driver).until(ec.visibility_of_element_located((By.CSS_SELECTOR, 'class=" css-b02ejv-menu"')) select_question_type = self.driver.find_elements(By.CSS_SELECTOR, 'class="CustomOptionMenu_button__2GnMd"') for type in select_question_type: if type.text == "QCM grid": try: ActionChains(self.driver).click(type).perform() except StaleElementReferenceException: pass What i'm doing wrong?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.