<commit_before>package com.linkedin.pages;

import com.linkedin.core.BasePage;
import com.linkedin.property.LinkedInProperty;
import io.qameta.allure.Step;
import org.openqa.selenium.By;
import ru.qatools.properties.PropertyLoader;

import static com.linkedin.PageObjectSupplier.page;

public class LoginPage extends BasePage {

    @Step
    public HomePage logIn() {
        LinkedInProperty linkedInProperty = PropertyLoader.newInstance()
                .populate(LinkedInProperty.class);

        loadUrl(linkedInProperty.getUrl());
        type(By.id("session_key-login"), linkedInProperty.getUsername());
        type(By.id("session_password-login"), linkedInProperty.getPassword());
        click(By.id("btn-primary"));
        return page(HomePage.class);
    }

    @Step
    public void logOut() {
        click(By.id("nav-settings__dropdown-trigger"));
        waitVisibilityOfElementLocated(By.id("nav-settings__dropdown-options"));
        click(By.xpath("//a[@data-control-name='nav.settings_signout']"));
    }
}
<commit_msg>added waiting for homepage load<commit_after>package com.linkedin.pages;

import com.linkedin.core.BasePage;
import com.linkedin.property.LinkedInProperty;
import io.qameta.allure.Step;
import org.openqa.selenium.By;
import ru.qatools.properties.PropertyLoader;

import static com.linkedin.PageObjectSupplier.page;

public class LoginPage extends BasePage {

    @Step
    public HomePage logIn() {
        LinkedInProperty linkedInProperty = PropertyLoader.newInstance()
                .populate(LinkedInProperty.class);

        loadUrl(linkedInProperty.getUrl());
        type(By.id("session_key-login"), linkedInProperty.getUsername());
        type(By.id("session_password-login"), linkedInProperty.getPassword());
        click(By.id("btn-primary"));
        waitVisibilityOfElementLocated(By.id("feed-tab-icon"));
        return page(HomePage.class);
    }

    @Step
    public void logOut() {
        click(By.id("nav-settings__dropdown-trigger"));
        waitVisibilityOfElementLocated(By.id("nav-settings__dropdown-options"));
        click(By.xpath("//a[@data-control-name='nav.settings_signout']"));
    }
}

{'fraction_non_alphanumeric': 0.12939001848428835, 'fraction_numerical': 0.0, 'mean_word_length': 3.8871331828442437, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4256427', 'n_tokens_mistral': 647, 'n_tokens_neox': 635, 'n_words': 91}