Copy Data from Fields on one Web Page to Another Web Page?

Hello there Everyone, Im a little stuck, and im also new to this so bare with me please.

My first problem i have is this..

In chrome how can i copy ' A Red Dress ' text?

<div class="page-title-wrapper">
<h1 class="product_title entry-title">A red dress</h1></div>

' A Red Dress ' would be different every time..

I would like to then paste that into another webpage, but if i could get this going as a start it would be great.

All the best

Paul

Use a javascript in front browser action. Then enter

document.querySelector("h1.entry-title").innerText

in the javascript entry field. Send the results to a variable with the option dropdown built into the action and you should be good to go.

1 Like

The solution provided by @vincent_ardern may work, unless there is another element with the same class before the "h1" element.

A more specific path will help ensure getting the correct element, like this:

document.querySelector('div.page-title-wrapper h1.product_title.entry-title').innerText;

Let us know if this works for you.

BTW, are you sure this class is correct:
class="product_title entry-title"

I would expect "product_title" to use a dash instead of an underscore:
class="product-title entry-title"

i also have

								
<div class="title-wrapper">												
<!-- begin page-title-wrapper -->
<div class="page-title-wrapper">
<h1 class="product_title entry-title">A red dress</h1></div>
<!-- end page-title-wrapper -->

ith all this great help ive managed to impress my self here... that seems to work great... not sure if thats right?

that also pastes into the other site great.... my next problem is drop downs... but will get back to yoiu when im sure ill get stuck

58

Right..... now i am really stuck....

Is there away i can copy say ' dresses ' on my website page, then somehow search a drop down for that word and select it?

the drop down is this though... - clothes > women > dresses

thanks everyone