Skip to main content
Changed Title of the question and description for better understanding
Link
Kate Paulk
  • 31.5k
  • 8
  • 55
  • 109

Will the variable be still referencing to the same webelement on page after page refresh, while using PageFactory

Changed Title of the question and description for better understanding
Source Link

Java Selenium is it possible Will the variable be still referencing to the same webelement on page after page refresh @FindBy?, while using PageFactory

I use Page object pattern, selenium Web driver with Page Factory in selenium Webdriver with Java and Is it possible(as language).

Will my inputSearch variable be still referencing to refreshthe same webelement on page, after refreshing the respective page?

@FindBy(id = "inputSearch")
private WebElement inputSearch;

after something change on page?

Java Selenium is it possible to refresh @FindBy?

I use Page object pattern, selenium Web driver in Java and Is it possible to refresh

@FindBy(id = "inputSearch")
private WebElement inputSearch;

after something change on page?

Will the variable be still referencing to the same webelement on page after page refresh, while using PageFactory

I use Page object pattern with Page Factory in selenium Webdriver with Java (as language).

Will my inputSearch variable be still referencing to the same webelement on page, after refreshing the respective page?

@FindBy(id = "inputSearch")
private WebElement inputSearch;
Source Link

Java Selenium is it possible to refresh @FindBy?

I use Page object pattern, selenium Web driver in Java and Is it possible to refresh

@FindBy(id = "inputSearch")
private WebElement inputSearch;

after something change on page?