Question: I am building a nodejs app with docker, I am building on an EC2 instance `(ubuntu/arm64) ubuntu/images/hvm-ssd/ubuntu-focal-20.04-arm64-server-20211129` , and deploy it to AWS EKS, the node I am using is `ubuntu-eks/k8s_1.22/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20220630`, however the pod goes into `CrashLoopBackOff` status, and gives me the following error:

`exec /usr/local/bin/yarn: exec format error`

here is how my Dockerfile looks like

```
FROM --platform=linux/arm64 node:16-alpine as builder

RUN apk --no-cache add --virtual builds-deps build-base python3

RUN mkdir /app
WORKDIR /app

COPY ./package.json ./yarn.lock ./
RUN yarn install --production

FROM --platform=linux/arm64 node:16-alpine
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/app
USER node
COPY --chown=node:node ./ .
COPY --from=builder /app/node_modules ./node_modules

EXPOSE 4004

ENTRYPOINT ["yarn", "run", "start"]

```

Could someone help me with this ?

Answer: 
To identify the `<div>` with *`class="ProductVariants__VariantCard-sc-1unev4j-3 bEuNss`* with respect to the `<div>` with *`class="ProductVariants__RadioButtonInner-sc-1unev4j-6 fgFqYM`* you can use the following [Locator Strategy](https://stackoverflow.com/questions/48369043/official-locator-strategies-for-the-webdriver):

```
driver.find_element(by=By.XPATH, value="//div[starts-with(@class, 'ProductVariants__RadioButtonInner')]//ancestor::div[starts-with(@class, 'ProductVariants__VariantCard')]")

```
If you want to select ancestor node that *contain specific descendant node* try

```
driver.find_element(by=By.XPATH, value="//div[contains(@class,'ProductVariants__VariantCard-sc-1unev4j-3 bEuNss') and .//div[contains(@class, 'ProductVariants__RadioButtonInner-sc-1unev4j-6 fgFqYM')]]")

```