Css-Selector pass in Uipath

Hi,

how to pass the css-selector in UiPath ?

element.style {
width: auto;
height: auto;
position: absolute;
cursor: default;
display: initial;
top: 261.997px;
left: 222px;
}

Thanks
Shyam

@Shyam_Pragash where you want to use it.

Hi @Shyam_Pragash

Have a look on the docs

Regards
Gokul

Hi @raja.arslankhan

I have to change top and left of Input box on the website.

as shows above… how to pass ?

Previous Value :

element.style {

  1. width: auto;
  2. height: auto;
  3. position: absolute;
  4. cursor: default;
  5. display: initial;
  6. top:281.687px;
  7. left:470.993px;
    }

Change to :slight_smile:

element.style {
width: auto;
height: auto;
position: absolute;
cursor: default;
display: initial;
top: 261.997px;
left: 222px;
}

Thanks
Shyam

@Shyam_Pragash please follow these steps.
1-make it dynamic like this
element.style {

width: auto;
height: auto;
position: absolute;
cursor: default;
display: initial;
top:{0}px;
left:{1}px;
}
2-store it in StringVariable
3-use assign activity
4-put this in assign activity —String.Format(StringVariable, " 261.997",“ 222”)

Hi @raja.arslankhan

can you share xaml file… i have an issue.

Thanks
Shyam

@Shyam_Pragash give me little bit time.

@raja.arslankhan

Hmm.

Top, Left and line-height, Width of Input Box.

style=“font-size: 11px; vertical-align: top; z-index: 0; display: inline-block; line-height: 70px; width: 920px; height: 390px;”

style=“width: auto; height: auto; position: absolute; cursor: default; display: initial; left: 225px; top: 140px;”

Thanks
Shyam

@Shyam_Pragash now I am confused. what you have and what you want. can you please elaborate more

you want to make css dynamic?
or
you want to pass css to the html body?

@raja.arslankhan

I used drag and drop the screen … i need some product list so used to drag and drop the header side to work screen it will be done… but i facing the some issuse it is the i drag and drop the product list of box is very small in size… i need big size of box .

image

Thanks
Shyam

@Shyam_Pragash I am asking where you want to put css in code.

@raja.arslankhan

is it possible to resize the windows using Html body?

Thanks
Shyam

@Shyam_Pragash I am not getting your exact point. where is html body

@raja.arslankhan

Input Screen:
style=“width: auto; height: auto; position: absolute; cursor: default; display: initial; left: 580px; top: 175px;”

Expected Output:

  1. Set Position of Small windows
    style=“width: auto; height: auto; position: absolute; cursor: default; display: initial; left: 225px; top: 140px;”
  2. Resize the Windows
    style=“font-size: 11px; vertical-align: top; z-index: 0; display: inline-block; line-height: 70px; width: 920px; height: 390px;”

How to automate resize windows using UiPath ? where i am going to change ? Which acitivty to be used for this purpose ?

if any challenges let know take remote control.

Thanks
Shyam