Closed
Description
Version
1.45.0
Steps to reproduce
public String Input_locator_basedonLabel(String label) {
if(label.equalsIgnoreCase("Client Industry")) {
return "//*[@class='ajax__tab_panel' and @style='visibility: visible;']//*[text()='"+label+": ']/parent::tr//*[self::textarea or self::input or self::select]";
}
else {
return "//*[@class='ajax__tab_panel' and @style='visibility: visible;']//*[text()='"+label+":']/parent::tr//*[self::textarea or self::input or self::select]";
}
}
public void fill_opp_details() {
page.fill(Input_locator_basedonLabel("Opportunity Name"), "Shanmukha Playwright Java Opportunity");
page.fill(Input_locator_basedonLabel("Opportunity Owner"), "Shanmukha Gajula");
page.fill(Input_locator_basedonLabel("Account Name"), "Shanmukha Playwright Java Account");
page.locator("text='SF Other Details'").click();
page.fill(Input_locator_basedonLabel("Comments"), "Shanmukha Playwright Java");
page.fill(Input_locator_basedonLabel("Main Competitor"), "Shanmukha ");
page.locator(Input_locator_basedonLabel("Client Industry")).selectOption("Manufacturing");
}
Expected behavior
To have all the actions in the Traceviewer
Actual behavior
though script is performing all the actions only recent log of fill, select are being shown in trace viewer
Additional context
No response
Environment
Java version : 21
Browser : chromium
Operating System: Windows 11
Platform: win32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment