Используйте этот код
EditText direccion1, direccion2;
Button cambiarUrl;
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.set_webpage_fragment,container,false);
direccion2 = view.findViewById(R.id.your_edittext_id);
//same for the other edittext
//If you have a button to get the text and set the website into webviews,then find the button ID in same way and then use setOnClickListener on the button and then do the stuff
return view;
}
Это относится к любому виду представления, который вы хотите найти где угодно, если в каком-то контейнере есть представление, рассмотрите, например, LinearLayout, вы можете найти представления внутри LinearLayout, используя тот же метод, инициализировать LinearLayout, а затем использовать
linearLayoutObject.findViewById(R.id.id_of_view_you_want_to_find);