A:
The answer you are looking for can be found at this link.
You should download the appropriate version for your operating system (32 or 64 bit)
And a support link for your operating system (including a download link to the 32-bit and 64-bit versions of your operating system if you have not already done so).
There are also directions and prerequisites for installing in such a way that does not require an internet connection.
Q:
Configure GOOGLE_APPLICATION_CREDENTIALS environment variable for Chromedriver
I am trying to launch webdriver script using selenium (chromedriver) in windows. I have configured chromedriver using file path. But I am unable to configure the environment variable GOOGLE_APPLICATION_CREDENTIALS in Jenkins.
The command is -Dwebdriver.chrome.driver=C:/workspace/chromedriver/chromedriver.exe
I have also tried -Dwebdriver.chrome.driver=C:/workspace/chromedriver/chromedriver.exe and -Dchrome.binary=C:/workspace/chromedriver/chromedriver.exe.
I have set the variable in the environment.
I have also tried changing the value of the variable in the.bat file by using set, but it gives error.
Is there any other way to set the variable in Jenkins?
Thanks.
A:
I figured it out.
Jenkins is not exporting environment variable set from the bat file. I have exported the variable through the powershell command Start-Process -FilePath "SETVARIABLE=value"
Q:
Why does the `this.class` value change in this `ngAfterViewInit` example?
I'm trying to debug a bug in a project that I'm working on, and I'm a bit perplexed by the behavior of the this.class value.
Here's a reproducible example:
@Component({
selector: 'root',
template: `This is a link`,
})
export class AppComponent {
@ViewChild('myTarget', {read: ElementRef})
myTarget: ElementRef;
ngAfterViewInit(): void {
console.log(this be359ba680
Related links:
Kommentare